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