download method Null safety

Future<TMMessageSource> download()

Downloads the message as TMMessageSource

Implementation

Future<TMMessageSource> download() async {
  var r = await Requests.get<Map>('/sources/$id', auths[accountId]!.headers)
      as Map<String, dynamic>;
  return messageSourceFromJson(r);
}