fromJson static method

DocFeature? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._type = jsonObject["type"];
  result._data = BytesData.fromJson(jsonObject["data"]);

  return result;
}