GetSegmentDetectionResponse.fromJson constructor
GetSegmentDetectionResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetSegmentDetectionResponse.fromJson(Map<String, dynamic> json) {
return GetSegmentDetectionResponse(
audioMetadata: (json['AudioMetadata'] as List?)
?.whereNotNull()
.map((e) => AudioMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
jobStatus: (json['JobStatus'] as String?)?.toVideoJobStatus(),
nextToken: json['NextToken'] as String?,
segments: (json['Segments'] as List?)
?.whereNotNull()
.map((e) => SegmentDetection.fromJson(e as Map<String, dynamic>))
.toList(),
selectedSegmentTypes: (json['SelectedSegmentTypes'] as List?)
?.whereNotNull()
.map((e) => SegmentTypeInfo.fromJson(e as Map<String, dynamic>))
.toList(),
statusMessage: json['StatusMessage'] as String?,
videoMetadata: (json['VideoMetadata'] as List?)
?.whereNotNull()
.map((e) => VideoMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
);
}