GoogleCloudChannelV1ParameterDefinition.fromJson constructor

GoogleCloudChannelV1ParameterDefinition.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1ParameterDefinition.fromJson(core.Map json_)
  : this(
      allowedValues:
          (json_['allowedValues'] as core.List?)
              ?.map(
                (value) => GoogleCloudChannelV1Value.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      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_['name'] as core.String?,
      optional: json_['optional'] as core.bool?,
      parameterType: json_['parameterType'] as core.String?,
    );