GoogleAppsCardV1Card.fromJson constructor
GoogleAppsCardV1Card.fromJson(
- Map json_
Implementation
GoogleAppsCardV1Card.fromJson(core.Map json_)
: this(
cardActions: json_.containsKey('cardActions')
? (json_['cardActions'] as core.List)
.map((value) => GoogleAppsCardV1CardAction.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
displayStyle: json_.containsKey('displayStyle')
? json_['displayStyle'] as core.String
: null,
fixedFooter: json_.containsKey('fixedFooter')
? GoogleAppsCardV1CardFixedFooter.fromJson(
json_['fixedFooter'] as core.Map<core.String, core.dynamic>)
: null,
header: json_.containsKey('header')
? GoogleAppsCardV1CardHeader.fromJson(
json_['header'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
peekCardHeader: json_.containsKey('peekCardHeader')
? GoogleAppsCardV1CardHeader.fromJson(json_['peekCardHeader']
as core.Map<core.String, core.dynamic>)
: null,
sectionDividerStyle: json_.containsKey('sectionDividerStyle')
? json_['sectionDividerStyle'] as core.String
: null,
sections: json_.containsKey('sections')
? (json_['sections'] as core.List)
.map((value) => GoogleAppsCardV1Section.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);