Destination.fromJson constructor

Destination.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Destination.fromJson(Map<String, dynamic> json) {
  return Destination(
    destinationId: json['destinationId'] as String,
    destinationType: (json['destinationType'] as String).toDestinationType(),
    status: (json['status'] as String).toPublishingStatus(),
  );
}