GoogleCloudChannelV1EntitlementChange.fromJson constructor

GoogleCloudChannelV1EntitlementChange.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1EntitlementChange.fromJson(core.Map json_)
    : this(
        activationReason: json_.containsKey('activationReason')
            ? json_['activationReason'] as core.String
            : null,
        cancellationReason: json_.containsKey('cancellationReason')
            ? json_['cancellationReason'] as core.String
            : null,
        changeType: json_.containsKey('changeType')
            ? json_['changeType'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        entitlement: json_.containsKey('entitlement')
            ? json_['entitlement'] as core.String
            : null,
        offer:
            json_.containsKey('offer') ? json_['offer'] as core.String : null,
        operator: json_.containsKey('operator')
            ? json_['operator'] as core.String
            : null,
        operatorType: json_.containsKey('operatorType')
            ? json_['operatorType'] as core.String
            : null,
        otherChangeReason: json_.containsKey('otherChangeReason')
            ? json_['otherChangeReason'] 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,
        provisionedService: json_.containsKey('provisionedService')
            ? GoogleCloudChannelV1ProvisionedService.fromJson(
                json_['provisionedService']
                    as core.Map<core.String, core.dynamic>)
            : null,
        suspensionReason: json_.containsKey('suspensionReason')
            ? json_['suspensionReason'] as core.String
            : null,
      );