SpaceHierarchyRoomsChunk.fromJson constructor

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

Implementation

SpaceHierarchyRoomsChunk.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']);