GoogleAppsCardV1Widget.fromJson constructor

GoogleAppsCardV1Widget.fromJson(
  1. Map json_
)

Implementation

GoogleAppsCardV1Widget.fromJson(core.Map json_)
    : this(
        buttonList: json_.containsKey('buttonList')
            ? GoogleAppsCardV1ButtonList.fromJson(
                json_['buttonList'] as core.Map<core.String, core.dynamic>)
            : null,
        columns: json_.containsKey('columns')
            ? GoogleAppsCardV1Columns.fromJson(
                json_['columns'] as core.Map<core.String, core.dynamic>)
            : null,
        dateTimePicker: json_.containsKey('dateTimePicker')
            ? GoogleAppsCardV1DateTimePicker.fromJson(json_['dateTimePicker']
                as core.Map<core.String, core.dynamic>)
            : null,
        decoratedText: json_.containsKey('decoratedText')
            ? GoogleAppsCardV1DecoratedText.fromJson(
                json_['decoratedText'] as core.Map<core.String, core.dynamic>)
            : null,
        divider: json_.containsKey('divider')
            ? GoogleAppsCardV1Divider.fromJson(
                json_['divider'] as core.Map<core.String, core.dynamic>)
            : null,
        grid: json_.containsKey('grid')
            ? GoogleAppsCardV1Grid.fromJson(
                json_['grid'] as core.Map<core.String, core.dynamic>)
            : null,
        horizontalAlignment: json_.containsKey('horizontalAlignment')
            ? json_['horizontalAlignment'] as core.String
            : null,
        image: json_.containsKey('image')
            ? GoogleAppsCardV1Image.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        selectionInput: json_.containsKey('selectionInput')
            ? GoogleAppsCardV1SelectionInput.fromJson(json_['selectionInput']
                as core.Map<core.String, core.dynamic>)
            : null,
        textInput: json_.containsKey('textInput')
            ? GoogleAppsCardV1TextInput.fromJson(
                json_['textInput'] as core.Map<core.String, core.dynamic>)
            : null,
        textParagraph: json_.containsKey('textParagraph')
            ? GoogleAppsCardV1TextParagraph.fromJson(
                json_['textParagraph'] as core.Map<core.String, core.dynamic>)
            : null,
      );