TextStyleModel.fromJson constructor
Implementation
factory TextStyleModel.fromJson(Map<String, dynamic> json) {
return TextStyleModel(
fontWeight: json['fontWeight'],
fontSize: double.parse(json['fontSize'].toString()),
color: json['color']);
}