GoogleCloudChannelV1ParameterDefinition.fromJson constructor

GoogleCloudChannelV1ParameterDefinition.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1ParameterDefinition.fromJson(core.Map json_)
    : this(
        allowedValues: json_.containsKey('allowedValues')
            ? (json_['allowedValues'] as core.List)
                .map((value) => GoogleCloudChannelV1Value.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        maxValue: json_.containsKey('maxValue')
            ? GoogleCloudChannelV1Value.fromJson(
                json_['maxValue'] as core.Map<core.String, core.dynamic>)
            : null,
        minValue: json_.containsKey('minValue')
            ? GoogleCloudChannelV1Value.fromJson(
                json_['minValue'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        optional: json_.containsKey('optional')
            ? json_['optional'] as core.bool
            : null,
        parameterType: json_.containsKey('parameterType')
            ? json_['parameterType'] as core.String
            : null,
      );