GetSpaceHierarchyResponse.fromJson constructor

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

Implementation

GetSpaceHierarchyResponse.fromJson(Map<String, Object?> json)
    : nextBatch = ((v) => v != null ? v as String : null)(json['next_batch']),
      rooms = (json['rooms'] as List)
          .map((v) => SpaceRoomsChunk.fromJson(v as Map<String, Object?>))
          .toList();