DetectFacesResponse.fromJson constructor

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

Implementation

factory DetectFacesResponse.fromJson(Map<String, dynamic> json) {
  return DetectFacesResponse(
    faceDetails: (json['FaceDetails'] as List?)
        ?.whereNotNull()
        .map((e) => FaceDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    orientationCorrection:
        (json['OrientationCorrection'] as String?)?.toOrientationCorrection(),
  );
}