GoogleCloudDialogflowV2IntentMessageTableCard.fromJson constructor

GoogleCloudDialogflowV2IntentMessageTableCard.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2IntentMessageTableCard.fromJson(core.Map json_)
    : this(
        buttons: json_.containsKey('buttons')
            ? (json_['buttons'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2IntentMessageBasicCardButton
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        columnProperties: json_.containsKey('columnProperties')
            ? (json_['columnProperties'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2IntentMessageColumnProperties
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        image: json_.containsKey('image')
            ? GoogleCloudDialogflowV2IntentMessageImage.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2IntentMessageTableCardRow.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        subtitle: json_.containsKey('subtitle')
            ? json_['subtitle'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );