toJson method
Converts this RoomData to a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
'dimensions': dimensions?.toJson(),
'walls': walls.map((e) => e.toJson()).toList(),
'objects': objects.map((e) => e.toJson()).toList(),
'doors': doors.map((e) => e.toJson()).toList(),
'windows': windows.map((e) => e.toJson()).toList(),
'openings': openings.map((e) => e.toJson()).toList(),
'floor': floor?.toJson(),
'ceiling': ceiling?.toJson(),
};
}