ListRoomMembershipsResponse.fromJson constructor

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

Implementation

factory ListRoomMembershipsResponse.fromJson(Map<String, dynamic> json) {
  return ListRoomMembershipsResponse(
    nextToken: json['NextToken'] as String?,
    roomMemberships: (json['RoomMemberships'] as List?)
        ?.whereNotNull()
        .map((e) => RoomMembership.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}