WidgetMarkup.fromJson constructor
WidgetMarkup.fromJson(
- Map json_
Implementation
WidgetMarkup.fromJson(core.Map json_)
: this(
buttons: json_.containsKey('buttons')
? (json_['buttons'] as core.List)
.map((value) => Button.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
image: json_.containsKey('image')
? Image.fromJson(
json_['image'] as core.Map<core.String, core.dynamic>)
: null,
keyValue: json_.containsKey('keyValue')
? KeyValue.fromJson(
json_['keyValue'] as core.Map<core.String, core.dynamic>)
: null,
textParagraph: json_.containsKey('textParagraph')
? TextParagraph.fromJson(
json_['textParagraph'] as core.Map<core.String, core.dynamic>)
: null,
);