download method

Future<GWMessageSource> download()

Downloads the message as GWMessageSource

Implementation

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