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