ChildRoomsChunk.fromJson constructor

ChildRoomsChunk.fromJson(
  1. Map<String, Object?> json
)

Implementation

ChildRoomsChunk.fromJson(Map<String, Object?> json)
    : childrenState = (json['children_state'] as List)
          .map((v) => ChildrenState.fromJson(v as Map<String, Object?>))
          .toList(),
      roomType = ((v) => v != null ? v as String : null)(json['room_type']);