GoogleAppsCardV1DecoratedText.fromJson constructor

GoogleAppsCardV1DecoratedText.fromJson(
  1. Map json_
)

Implementation

GoogleAppsCardV1DecoratedText.fromJson(core.Map json_)
    : this(
        bottomLabel: json_.containsKey('bottomLabel')
            ? json_['bottomLabel'] as core.String
            : null,
        button: json_.containsKey('button')
            ? GoogleAppsCardV1Button.fromJson(
                json_['button'] as core.Map<core.String, core.dynamic>)
            : null,
        endIcon: json_.containsKey('endIcon')
            ? GoogleAppsCardV1Icon.fromJson(
                json_['endIcon'] as core.Map<core.String, core.dynamic>)
            : 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,
        startIcon: json_.containsKey('startIcon')
            ? GoogleAppsCardV1Icon.fromJson(
                json_['startIcon'] as core.Map<core.String, core.dynamic>)
            : null,
        switchControl: json_.containsKey('switchControl')
            ? GoogleAppsCardV1SwitchControl.fromJson(
                json_['switchControl'] as core.Map<core.String, core.dynamic>)
            : null,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
        topLabel: json_.containsKey('topLabel')
            ? json_['topLabel'] as core.String
            : null,
        wrapText: json_.containsKey('wrapText')
            ? json_['wrapText'] as core.bool
            : null,
      );