InputSettings.fromJson constructor
InputSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InputSettings.fromJson(Map<String, dynamic> json) {
return InputSettings(
audioSelectors: (json['audioSelectors'] as List?)
?.whereNotNull()
.map((e) => AudioSelector.fromJson(e as Map<String, dynamic>))
.toList(),
captionSelectors: (json['captionSelectors'] as List?)
?.whereNotNull()
.map((e) => CaptionSelector.fromJson(e as Map<String, dynamic>))
.toList(),
deblockFilter: (json['deblockFilter'] as String?)?.toInputDeblockFilter(),
denoiseFilter: (json['denoiseFilter'] as String?)?.toInputDenoiseFilter(),
filterStrength: json['filterStrength'] as int?,
inputFilter: (json['inputFilter'] as String?)?.toInputFilter(),
networkInputSettings: json['networkInputSettings'] != null
? NetworkInputSettings.fromJson(
json['networkInputSettings'] as Map<String, dynamic>)
: null,
smpte2038DataPreference: (json['smpte2038DataPreference'] as String?)
?.toSmpte2038DataPreference(),
sourceEndBehavior:
(json['sourceEndBehavior'] as String?)?.toInputSourceEndBehavior(),
videoSelector: json['videoSelector'] != null
? VideoSelector.fromJson(
json['videoSelector'] as Map<String, dynamic>)
: null,
);
}