fromJson method
Implementation
@override
FontStyle? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'italic':
return FontStyle.italic;
case 'normal':
return FontStyle.normal;
}
throw 'Unsuported_Json_Value';
}