GoogleCloudDialogflowV2IntentMessageBasicCard.fromJson constructor

GoogleCloudDialogflowV2IntentMessageBasicCard.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2IntentMessageBasicCard.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,
        formattedText: json_.containsKey('formattedText')
            ? json_['formattedText'] as core.String
            : null,
        image: json_.containsKey('image')
            ? GoogleCloudDialogflowV2IntentMessageImage.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        subtitle: json_.containsKey('subtitle')
            ? json_['subtitle'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );