ComparedFace.fromJson constructor
ComparedFace.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ComparedFace.fromJson(Map<String, dynamic> json) {
return ComparedFace(
boundingBox: json['BoundingBox'] != null
? BoundingBox.fromJson(json['BoundingBox'] as Map<String, dynamic>)
: null,
confidence: json['Confidence'] as double?,
landmarks: (json['Landmarks'] as List?)
?.whereNotNull()
.map((e) => Landmark.fromJson(e as Map<String, dynamic>))
.toList(),
pose: json['Pose'] != null
? Pose.fromJson(json['Pose'] as Map<String, dynamic>)
: null,
quality: json['Quality'] != null
? ImageQuality.fromJson(json['Quality'] as Map<String, dynamic>)
: null,
);
}