fromJson static method

Symbol? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static Symbol? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = Symbol();

  result._code = jsonObject["code"];
  result._rect = Rect.fromJson(jsonObject["rect"]);
  result._probability = jsonObject["probability"];

  return result;
}