GoogleCloudDialogflowV2Fulfillment.fromJson constructor

GoogleCloudDialogflowV2Fulfillment.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2Fulfillment.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        features: json_.containsKey('features')
            ? (json_['features'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2FulfillmentFeature.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        genericWebService: json_.containsKey('genericWebService')
            ? GoogleCloudDialogflowV2FulfillmentGenericWebService.fromJson(
                json_['genericWebService']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );