ThemeModel.fromJson constructor
ThemeModel.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ThemeModel.fromJson(Map<String, dynamic> json) {
return ThemeModel(
primaryColor: json["primaryColor"],
onPrimaryColor: json["onPrimaryColor"],
secondaryColor: json["secondaryColor"],
errorColor: json["errorColor"],
borderColor: json["borderColor"],
buttonTextStyle: TextStyleModel.fromJson(json["buttonTextStyle"]),
headline1: TextStyleModel.fromJson(json["headline1"]),
headline2: TextStyleModel.fromJson(json["headline2"]),
hintStyle: TextStyleModel.fromJson(json["hintStyle"]),
);
}