ListChannelsResponse.fromJson constructor

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

Implementation

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