UnindexedFace.fromJson constructor
Implementation
factory UnindexedFace.fromJson(Map<String, dynamic> json) {
return UnindexedFace(
faceDetail: json['FaceDetail'] != null
? FaceDetail.fromJson(json['FaceDetail'] as Map<String, dynamic>)
: null,
reasons: (json['Reasons'] as List?)
?.whereNotNull()
.map((e) => (e as String).toReason())
.toList(),
);
}