GoogleCloudRecaptchaenterpriseV1TransactionData.fromJson constructor

GoogleCloudRecaptchaenterpriseV1TransactionData.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecaptchaenterpriseV1TransactionData.fromJson(core.Map json_)
    : this(
        billingAddress: json_.containsKey('billingAddress')
            ? GoogleCloudRecaptchaenterpriseV1TransactionDataAddress.fromJson(
                json_['billingAddress']
                    as core.Map<core.String, core.dynamic>)
            : null,
        cardBin: json_.containsKey('cardBin')
            ? json_['cardBin'] as core.String
            : null,
        cardLastFour: json_.containsKey('cardLastFour')
            ? json_['cardLastFour'] as core.String
            : null,
        currencyCode: json_.containsKey('currencyCode')
            ? json_['currencyCode'] as core.String
            : null,
        gatewayInfo: json_.containsKey('gatewayInfo')
            ? GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
                .fromJson(json_['gatewayInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) =>
                    GoogleCloudRecaptchaenterpriseV1TransactionDataItem
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        merchants: json_.containsKey('merchants')
            ? (json_['merchants'] as core.List)
                .map((value) =>
                    GoogleCloudRecaptchaenterpriseV1TransactionDataUser
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        paymentMethod: json_.containsKey('paymentMethod')
            ? json_['paymentMethod'] as core.String
            : null,
        shippingAddress: json_.containsKey('shippingAddress')
            ? GoogleCloudRecaptchaenterpriseV1TransactionDataAddress.fromJson(
                json_['shippingAddress']
                    as core.Map<core.String, core.dynamic>)
            : null,
        shippingValue: json_.containsKey('shippingValue')
            ? (json_['shippingValue'] as core.num).toDouble()
            : null,
        transactionId: json_.containsKey('transactionId')
            ? json_['transactionId'] as core.String
            : null,
        user: json_.containsKey('user')
            ? GoogleCloudRecaptchaenterpriseV1TransactionDataUser.fromJson(
                json_['user'] as core.Map<core.String, core.dynamic>)
            : null,
        value: json_.containsKey('value')
            ? (json_['value'] as core.num).toDouble()
            : null,
      );