Option.fromJson constructor

Option.fromJson(
  1. Map _json
)

Implementation

Option.fromJson(core.Map _json) {
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("value")) {
    value = (_json["value"] as core.Map).cast<core.String, core.Object>();
  }
}