DvbSubDestinationSettings.fromJson constructor

DvbSubDestinationSettings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DvbSubDestinationSettings.fromJson(Map<String, dynamic> json) {
  return DvbSubDestinationSettings(
    alignment: (json['alignment'] as String?)?.toDvbSubtitleAlignment(),
    backgroundColor:
        (json['backgroundColor'] as String?)?.toDvbSubtitleBackgroundColor(),
    backgroundOpacity: json['backgroundOpacity'] as int?,
    fontColor: (json['fontColor'] as String?)?.toDvbSubtitleFontColor(),
    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?)?.toDvbSubtitleOutlineColor(),
    outlineSize: json['outlineSize'] as int?,
    shadowColor: (json['shadowColor'] as String?)?.toDvbSubtitleShadowColor(),
    shadowOpacity: json['shadowOpacity'] as int?,
    shadowXOffset: json['shadowXOffset'] as int?,
    shadowYOffset: json['shadowYOffset'] as int?,
    subtitlingType:
        (json['subtitlingType'] as String?)?.toDvbSubtitlingType(),
    teletextSpacing:
        (json['teletextSpacing'] as String?)?.toDvbSubtitleTeletextSpacing(),
    xPosition: json['xPosition'] as int?,
    yPosition: json['yPosition'] as int?,
  );
}