GoogleAppsCardV1Button.fromJson constructor
GoogleAppsCardV1Button.fromJson(
- Map json_
Implementation
GoogleAppsCardV1Button.fromJson(core.Map json_)
: this(
altText: json_.containsKey('altText')
? json_['altText'] as core.String
: null,
color: json_.containsKey('color')
? Color.fromJson(
json_['color'] as core.Map<core.String, core.dynamic>)
: null,
disabled: json_.containsKey('disabled')
? json_['disabled'] as core.bool
: null,
icon: json_.containsKey('icon')
? GoogleAppsCardV1Icon.fromJson(
json_['icon'] as core.Map<core.String, core.dynamic>)
: null,
onClick: json_.containsKey('onClick')
? GoogleAppsCardV1OnClick.fromJson(
json_['onClick'] as core.Map<core.String, core.dynamic>)
: null,
text: json_.containsKey('text') ? json_['text'] as core.String : null,
);