Value.fromJson constructor

Value.fromJson(
  1. Map json_
)

Implementation

Value.fromJson(core.Map json_)
    : this(
        fpVal: json_.containsKey('fpVal')
            ? (json_['fpVal'] as core.num).toDouble()
            : null,
        intVal:
            json_.containsKey('intVal') ? json_['intVal'] as core.int : null,
        mapVal: json_.containsKey('mapVal')
            ? (json_['mapVal'] as core.List)
                .map((value) => ValueMapValEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        stringVal: json_.containsKey('stringVal')
            ? json_['stringVal'] as core.String
            : null,
      );