UIFont.fromJson constructor
Returns a UIFont type from a JSON
Implementation
factory UIFont.fromJson(Map<String, dynamic> data) {
var self = UIFont();
self._map["name"] =
data['name'] ?? {throw ArgumentError('name should not be null')};
self._map["size"] =
data['size'] ?? {throw ArgumentError('size should not be null')};
return self;
}