toJson method

Map<String, dynamic> toJson()

Converts this ObjectData to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'uuid': uuid,
    'position': position.toJson(),
    'category': category.toJson(),
    'width': width,
    'height': height,
    'length': length,
    'confidence': confidence.toJson(),
    'dimensions': dimensions?.toJson(),
    'transform': transform != null ? _matrixToJson(transform!) : null,
  };
}