Result.fromJson constructor

Result.fromJson(
  1. Map _json
)

Implementation

Result.fromJson(core.Map _json)
    : this(
        undefined: _json.containsKey('undefined')
            ? Empty.fromJson(
                _json['undefined'] as core.Map<core.String, core.dynamic>)
            : null,
        value: _json.containsKey('value') ? _json['value'] : null,
      );