getDestinationById method

  1. @override
Future<JMapDestination?> getDestinationById(
  1. num destId
)

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;
}