DetectLabelsResponse.fromJson constructor

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

Implementation

factory DetectLabelsResponse.fromJson(Map<String, dynamic> json) {
  return DetectLabelsResponse(
    labelModelVersion: json['LabelModelVersion'] as String?,
    labels: (json['Labels'] as List?)
        ?.whereNotNull()
        .map((e) => Label.fromJson(e as Map<String, dynamic>))
        .toList(),
    orientationCorrection:
        (json['OrientationCorrection'] as String?)?.toOrientationCorrection(),
  );
}