UiFeedbackElementConfig.fromJson constructor
UiFeedbackElementConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UiFeedbackElementConfig.fromJson(Map<String, dynamic> json) =>
UiFeedbackElementConfig(
clickable: json["clickable"],
contentType: contentTypeEnumValues.map[json["contentType"]],
defaultAttributes: json["defaultAttributes"] == null
? null
: UiFeedbackElementAttributesConfig.fromJson(
json["defaultAttributes"]),
defaultContent: json["defaultContent"] == null
? null
: UiFeedbackElementContentConfig.fromJson(json["defaultContent"]),
id: json["id"],
overlay: json["overlay"] == null
? null
: OverlayConfig.fromJson(json["overlay"]),
presets: json["presets"] == null
? []
: List<UiFeedbackPresetConfig>.from(json["presets"]!
.map((x) => UiFeedbackPresetConfig.fromJson(x))),
tag: json["tag"],
trigger: json["trigger"] == null
? null
: UiFeedbackElementTriggerConfig.fromJson(json["trigger"]),
);