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