fromJson method
Implementation
@override
ButtonTextTheme? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'accent':
return ButtonTextTheme.accent;
case 'normal':
return ButtonTextTheme.normal;
case 'primary':
return ButtonTextTheme.primary;
}
throw 'Unsuported_Json_Value';
}