fetchMaker function

Future<MakerInfo> fetchMaker(
  1. Client client,
  2. String id
)

Implementation

Future<MakerInfo> fetchMaker(http.Client client, String id) async {

  final response = await client
      .get(Uri.parse('https://mapi.darkvn.net/v2/mbccss/'+id+'?token=Ksdjfxxxx_SMx_v1'));

  print('Routing Coords:${Uri.parse('https://mapi.darkvn.net/v2/mbccss/'+id+'?token=Ksdjfxxxx_SMx_v1')}');
  // Use the compute function to run parsePhotos in a separate isolate.
  return MakerInfo.fromJson(jsonDecode(response.body));
}