GoogleCloudChannelV1ChangeOfferRequest.fromJson constructor

GoogleCloudChannelV1ChangeOfferRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1ChangeOfferRequest.fromJson(core.Map json_)
    : this(
        billingAccount: json_.containsKey('billingAccount')
            ? json_['billingAccount'] as core.String
            : null,
        offer:
            json_.containsKey('offer') ? json_['offer'] as core.String : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.List)
                .map((value) => GoogleCloudChannelV1Parameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        purchaseOrderId: json_.containsKey('purchaseOrderId')
            ? json_['purchaseOrderId'] as core.String
            : null,
        requestId: json_.containsKey('requestId')
            ? json_['requestId'] as core.String
            : null,
      );