ListChannelMembershipsResponse.fromJson constructor

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

Implementation

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