nearbyReport method

Future<NearbyReportResponse?> nearbyReport()

Implementation

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