FontParams.fromJson constructor

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

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']);
}