ButtonStyle.fromJson constructor
Get ButtonStyle from Json Map
Implementation
factory ButtonStyle.fromJson(Map<String, dynamic> json) {
return ButtonStyle(
backgroundColor:
(json[keyBackgroundColor] ?? defaultTextBgColor) as String,
fontSize: (json[keyFontSize] ?? defaultFontSize) as int,
);
}