Mpeg2Settings.fromJson constructor
Mpeg2Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Mpeg2Settings.fromJson(Map<String, dynamic> json) {
return Mpeg2Settings(
framerateDenominator: json['framerateDenominator'] as int,
framerateNumerator: json['framerateNumerator'] as int,
adaptiveQuantization: (json['adaptiveQuantization'] as String?)
?.toMpeg2AdaptiveQuantization(),
afdSignaling: (json['afdSignaling'] as String?)?.toAfdSignaling(),
colorMetadata: (json['colorMetadata'] as String?)?.toMpeg2ColorMetadata(),
colorSpace: (json['colorSpace'] as String?)?.toMpeg2ColorSpace(),
displayAspectRatio:
(json['displayAspectRatio'] as String?)?.toMpeg2DisplayRatio(),
filterSettings: json['filterSettings'] != null
? Mpeg2FilterSettings.fromJson(
json['filterSettings'] as Map<String, dynamic>)
: null,
fixedAfd: (json['fixedAfd'] as String?)?.toFixedAfd(),
gopClosedCadence: json['gopClosedCadence'] as int?,
gopNumBFrames: json['gopNumBFrames'] as int?,
gopSize: json['gopSize'] as double?,
gopSizeUnits: (json['gopSizeUnits'] as String?)?.toMpeg2GopSizeUnits(),
scanType: (json['scanType'] as String?)?.toMpeg2ScanType(),
subgopLength: (json['subgopLength'] as String?)?.toMpeg2SubGopLength(),
timecodeInsertion: (json['timecodeInsertion'] as String?)
?.toMpeg2TimecodeInsertionBehavior(),
);
}