ListChannelBansResponse.fromJson constructor

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

Implementation

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