CustomLabel.fromJson constructor

CustomLabel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CustomLabel.fromJson(Map<String, dynamic> json) {
  return CustomLabel(
    confidence: json['Confidence'] as double?,
    geometry: json['Geometry'] != null
        ? Geometry.fromJson(json['Geometry'] as Map<String, dynamic>)
        : null,
    name: json['Name'] as String?,
  );
}