getDestinationById method
Implementation
@override
Future<JMapDestination?> getDestinationById(num destId) async {
Map<Object?, Object?>? json = await _channel
.invokeMethod("utility#getDestinationById", {"destinationID": destId});
if (json != null && json['destination'] is Map) {
JMapDestination? destination =
JMapDestination.fromJson(json['destination']);
return destination;
}
return null;
}