GoogleCloudChannelV1PriceByResource.fromJson constructor

GoogleCloudChannelV1PriceByResource.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1PriceByResource.fromJson(core.Map json_)
    : this(
        price: json_.containsKey('price')
            ? GoogleCloudChannelV1Price.fromJson(
                json_['price'] as core.Map<core.String, core.dynamic>)
            : null,
        pricePhases: json_.containsKey('pricePhases')
            ? (json_['pricePhases'] as core.List)
                .map((value) => GoogleCloudChannelV1PricePhase.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
      );