GetFaceSearchResponse.fromJson constructor
GetFaceSearchResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetFaceSearchResponse.fromJson(Map<String, dynamic> json) {
return GetFaceSearchResponse(
jobStatus: (json['JobStatus'] as String?)?.toVideoJobStatus(),
nextToken: json['NextToken'] as String?,
persons: (json['Persons'] as List?)
?.whereNotNull()
.map((e) => PersonMatch.fromJson(e as Map<String, dynamic>))
.toList(),
statusMessage: json['StatusMessage'] as String?,
videoMetadata: json['VideoMetadata'] != null
? VideoMetadata.fromJson(
json['VideoMetadata'] as Map<String, dynamic>)
: null,
);
}