ListChannelMessagesResponse.fromJson constructor

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

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?,
  );
}