BurnInDestinationSettings.fromJson constructor
BurnInDestinationSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BurnInDestinationSettings.fromJson(Map<String, dynamic> json) {
return BurnInDestinationSettings(
alignment: (json['alignment'] as String?)?.toBurnInAlignment(),
backgroundColor:
(json['backgroundColor'] as String?)?.toBurnInBackgroundColor(),
backgroundOpacity: json['backgroundOpacity'] as int?,
font: json['font'] != null
? InputLocation.fromJson(json['font'] as Map<String, dynamic>)
: null,
fontColor: (json['fontColor'] as String?)?.toBurnInFontColor(),
fontOpacity: json['fontOpacity'] as int?,
fontResolution: json['fontResolution'] as int?,
fontSize: json['fontSize'] as String?,
outlineColor: (json['outlineColor'] as String?)?.toBurnInOutlineColor(),
outlineSize: json['outlineSize'] as int?,
shadowColor: (json['shadowColor'] as String?)?.toBurnInShadowColor(),
shadowOpacity: json['shadowOpacity'] as int?,
shadowXOffset: json['shadowXOffset'] as int?,
shadowYOffset: json['shadowYOffset'] as int?,
teletextGridControl: (json['teletextGridControl'] as String?)
?.toBurnInTeletextGridControl(),
xPosition: json['xPosition'] as int?,
yPosition: json['yPosition'] as int?,
);
}