Card.fromJson constructor
Card.fromJson(
- Map json_
Implementation
Card.fromJson(core.Map json_)
: this(
cardActions: json_.containsKey('cardActions')
? (json_['cardActions'] as core.List)
.map((value) => CardAction.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
header: json_.containsKey('header')
? CardHeader.fromJson(
json_['header'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
sections: json_.containsKey('sections')
? (json_['sections'] as core.List)
.map((value) => Section.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);