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