toJson method
Converts this WallData to a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
'uuid': uuid,
'position': position.toJson(),
'points': points.map((e) => e.toJson()).toList(),
'width': width,
'height': height,
'confidence': confidence.toJson(),
'openings': openings.map((e) => e.toJson()).toList(),
'dimensions': dimensions?.toJson(),
'transform': transform != null ? _matrixToJson(transform!) : null,
};
}