ListChannelsResponse.fromJson constructor

ListChannelsResponse.fromJson(
  1. Map _json
)

Implementation

ListChannelsResponse.fromJson(core.Map _json)
    : this(
        channels: _json.containsKey('channels')
            ? (_json['channels'] as core.List)
                .map((value) => Channel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
      );