RoomMetadata.fromJson constructor
Creates a RoomMetadata object from the JSON response to a GET request.
Implementation
factory RoomMetadata.fromJson(Map<String, dynamic> dataMap) {
return RoomMetadata(
name: dataMap[ApiFields.name] ?? "",
archetype: RoomArchetype.fromString(dataMap[ApiFields.archetype] ?? ""),
);
}