QueryPublicRoomsResponse.fromJson constructor
Implementation
QueryPublicRoomsResponse.fromJson(Map<String, Object?> json)
: chunk = (json['chunk'] as List)
.map((v) => PublicRoomsChunk.fromJson(v as Map<String, Object?>))
.toList(),
nextBatch = ((v) => v != null ? v as String : null)(json['next_batch']),
prevBatch = ((v) => v != null ? v as String : null)(json['prev_batch']),
totalRoomCountEstimate = ((v) =>
v != null ? v as int : null)(json['total_room_count_estimate']);