fromJson static method

Font? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.name = jsonObject["name"];
  result.style = jsonObject["style"];
  result.size = jsonObject["size"];

  return result;
}