GoogleCloudChannelV1Offer.fromJson constructor

GoogleCloudChannelV1Offer.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1Offer.fromJson(core.Map json_)
    : this(
        constraints: json_.containsKey('constraints')
            ? GoogleCloudChannelV1Constraints.fromJson(
                json_['constraints'] as core.Map<core.String, core.dynamic>)
            : null,
        dealCode: json_.containsKey('dealCode')
            ? json_['dealCode'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        marketingInfo: json_.containsKey('marketingInfo')
            ? GoogleCloudChannelV1MarketingInfo.fromJson(
                json_['marketingInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parameterDefinitions: json_.containsKey('parameterDefinitions')
            ? (json_['parameterDefinitions'] as core.List)
                .map((value) =>
                    GoogleCloudChannelV1ParameterDefinition.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        plan: json_.containsKey('plan')
            ? GoogleCloudChannelV1Plan.fromJson(
                json_['plan'] as core.Map<core.String, core.dynamic>)
            : null,
        priceByResources: json_.containsKey('priceByResources')
            ? (json_['priceByResources'] as core.List)
                .map((value) => GoogleCloudChannelV1PriceByResource.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sku: json_.containsKey('sku')
            ? GoogleCloudChannelV1Sku.fromJson(
                json_['sku'] as core.Map<core.String, core.dynamic>)
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
      );