ListChannelModeratorsResponse.fromJson constructor

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

Implementation

factory ListChannelModeratorsResponse.fromJson(Map<String, dynamic> json) {
  return ListChannelModeratorsResponse(
    channelArn: json['ChannelArn'] as String?,
    channelModerators: (json['ChannelModerators'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ChannelModeratorSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}