TextStyleModel.fromJson constructor

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

Implementation

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