Parameter.fromJson constructor

Parameter.fromJson(
  1. Map json_
)

Implementation

Parameter.fromJson(core.Map json_)
    : this(
        isWeakReference: json_.containsKey('isWeakReference')
            ? json_['isWeakReference'] as core.bool
            : null,
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
        list: json_.containsKey('list')
            ? (json_['list'] as core.List)
                .map((value) => Parameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        map: json_.containsKey('map')
            ? (json_['map'] as core.List)
                .map((value) => Parameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        value:
            json_.containsKey('value') ? json_['value'] as core.String : null,
      );