fromJson static method
- dynamic jsonObject
Allows you to deserialize object.
Implementation
static Font? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = Font(jsonObject["name"]);
result.size = jsonObject["size"];
result.style = FontStyle.getByValue(jsonObject["style"]);
return result;
}