DvbSubDestinationSettings.fromJson constructor
DvbSubDestinationSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DvbSubDestinationSettings.fromJson(Map<String, dynamic> json) {
return DvbSubDestinationSettings(
alignment: (json['alignment'] as String?)?.toDvbSubDestinationAlignment(),
backgroundColor: (json['backgroundColor'] as String?)
?.toDvbSubDestinationBackgroundColor(),
backgroundOpacity: json['backgroundOpacity'] as int?,
font: json['font'] != null
? InputLocation.fromJson(json['font'] as Map<String, dynamic>)
: null,
fontColor: (json['fontColor'] as String?)?.toDvbSubDestinationFontColor(),
fontOpacity: json['fontOpacity'] as int?,
fontResolution: json['fontResolution'] as int?,
fontSize: json['fontSize'] as String?,
outlineColor:
(json['outlineColor'] as String?)?.toDvbSubDestinationOutlineColor(),
outlineSize: json['outlineSize'] as int?,
shadowColor:
(json['shadowColor'] as String?)?.toDvbSubDestinationShadowColor(),
shadowOpacity: json['shadowOpacity'] as int?,
shadowXOffset: json['shadowXOffset'] as int?,
shadowYOffset: json['shadowYOffset'] as int?,
teletextGridControl: (json['teletextGridControl'] as String?)
?.toDvbSubDestinationTeletextGridControl(),
xPosition: json['xPosition'] as int?,
yPosition: json['yPosition'] as int?,
);
}