GoogleCloudDialogflowV2IntentMessageCard.fromJson constructor

GoogleCloudDialogflowV2IntentMessageCard.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2IntentMessageCard.fromJson(core.Map json_)
    : this(
        buttons: json_.containsKey('buttons')
            ? (json_['buttons'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2IntentMessageCardButton.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        imageUri: json_.containsKey('imageUri')
            ? json_['imageUri'] as core.String
            : null,
        subtitle: json_.containsKey('subtitle')
            ? json_['subtitle'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );