ListRoomsResponse.fromJson constructor
Implementation
factory ListRoomsResponse.fromJson(Map<String, dynamic> json) {
return ListRoomsResponse(
nextToken: json['NextToken'] as String?,
rooms: (json['Rooms'] as List?)
?.whereNotNull()
.map((e) => Room.fromJson(e as Map<String, dynamic>))
.toList(),
);
}