FontParams.fromJson constructor
Creates a FontParams instance from a JSON representation.
Implementation
FontParams.fromJson(Map<String, dynamic> json) {
family = json['family'];
size = json['size']?.toDouble();
style = FontStyle.fromJson(json['style']);
}