GoogleAppsCardV1Section.fromJson constructor
GoogleAppsCardV1Section.fromJson(
- Map json_
Implementation
GoogleAppsCardV1Section.fromJson(core.Map json_)
: this(
collapsible: json_.containsKey('collapsible')
? json_['collapsible'] as core.bool
: null,
header: json_.containsKey('header')
? json_['header'] as core.String
: null,
uncollapsibleWidgetsCount:
json_.containsKey('uncollapsibleWidgetsCount')
? json_['uncollapsibleWidgetsCount'] as core.int
: null,
widgets: json_.containsKey('widgets')
? (json_['widgets'] as core.List)
.map((value) => GoogleAppsCardV1Widget.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);