SegmentDetection.fromJson constructor
SegmentDetection.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SegmentDetection.fromJson(Map<String, dynamic> json) {
return SegmentDetection(
durationMillis: json['DurationMillis'] as int?,
durationSMPTE: json['DurationSMPTE'] as String?,
endTimecodeSMPTE: json['EndTimecodeSMPTE'] as String?,
endTimestampMillis: json['EndTimestampMillis'] as int?,
shotSegment: json['ShotSegment'] != null
? ShotSegment.fromJson(json['ShotSegment'] as Map<String, dynamic>)
: null,
startTimecodeSMPTE: json['StartTimecodeSMPTE'] as String?,
startTimestampMillis: json['StartTimestampMillis'] as int?,
technicalCueSegment: json['TechnicalCueSegment'] != null
? TechnicalCueSegment.fromJson(
json['TechnicalCueSegment'] as Map<String, dynamic>)
: null,
type: (json['Type'] as String?)?.toSegmentType(),
);
}