DetectLabelsResponse.fromJson constructor
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(),
);
}