fromJson static method

GraphicResult? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  for (var item in jsonObject["fields"]) {
    result._fields.addSafe(GraphicField.fromJson(item));
  }

  return result;
}