ListPublishingDestinationsResponse.fromJson constructor

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

Implementation

factory ListPublishingDestinationsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListPublishingDestinationsResponse(
    destinations: (json['destinations'] as List)
        .whereNotNull()
        .map((e) => Destination.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}