BurninDestinationSettings.fromJson constructor
BurninDestinationSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BurninDestinationSettings.fromJson(Map<String, dynamic> json) {
return BurninDestinationSettings(
alignment: (json['alignment'] as String?)?.toBurninSubtitleAlignment(),
backgroundColor: (json['backgroundColor'] as String?)
?.toBurninSubtitleBackgroundColor(),
backgroundOpacity: json['backgroundOpacity'] as int?,
fontColor: (json['fontColor'] as String?)?.toBurninSubtitleFontColor(),
fontOpacity: json['fontOpacity'] as int?,
fontResolution: json['fontResolution'] as int?,
fontScript: (json['fontScript'] as String?)?.toFontScript(),
fontSize: json['fontSize'] as int?,
outlineColor:
(json['outlineColor'] as String?)?.toBurninSubtitleOutlineColor(),
outlineSize: json['outlineSize'] as int?,
shadowColor:
(json['shadowColor'] as String?)?.toBurninSubtitleShadowColor(),
shadowOpacity: json['shadowOpacity'] as int?,
shadowXOffset: json['shadowXOffset'] as int?,
shadowYOffset: json['shadowYOffset'] as int?,
teletextSpacing: (json['teletextSpacing'] as String?)
?.toBurninSubtitleTeletextSpacing(),
xPosition: json['xPosition'] as int?,
yPosition: json['yPosition'] as int?,
);
}