fromJson static method

Extension? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._data = jsonObject["data"];
  result._type = jsonObject["type"];

  return result;
}