ListChannelsResponse.fromJson constructor

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

Implementation

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