QueryParameterValue.fromJson constructor

QueryParameterValue.fromJson(
  1. Map json_
)

Implementation

QueryParameterValue.fromJson(core.Map json_)
    : this(
        arrayValues: json_.containsKey('arrayValues')
            ? (json_['arrayValues'] as core.List)
                .map((value) => QueryParameterValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rangeValue: json_.containsKey('rangeValue')
            ? RangeValue.fromJson(
                json_['rangeValue'] as core.Map<core.String, core.dynamic>)
            : null,
        structValues: json_.containsKey('structValues')
            ? (json_['structValues'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  QueryParameterValue.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        value:
            json_.containsKey('value') ? json_['value'] as core.String : null,
      );