callGeoAnalyticsList method

Future<GeoAnalyticsListResponse?> callGeoAnalyticsList()

Implementation

Future<GeoAnalyticsListResponse?> callGeoAnalyticsList() async {
  try {
    String? result = await restApi.geoAnalyticsList(toJson());
    return result != null
        ? GeoAnalyticsListResponse.fromMap(json.decode(result))
        : null;
  } on PlatformException catch (e) {
    return Future.error(e);
  }
}