FontParams.fromJson constructor

FontParams.fromJson(
  1. Map<String, dynamic> json
)

Implementation

FontParams.fromJson(Map<String, dynamic> json) {
  family = json['family'];
  size = json['size'] == null ? null : json['size'].toDouble();
  style = FontStyle.fromJson(json['style']);
}