ListChannelMessagesResponse.fromJson constructor
Implementation
factory ListChannelMessagesResponse.fromJson(Map<String, dynamic> json) {
return ListChannelMessagesResponse(
channelArn: json['ChannelArn'] as String?,
channelMessages: (json['ChannelMessages'] as List?)
?.whereNotNull()
.map((e) => ChannelMessageSummary.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['NextToken'] as String?,
);
}