toJson method

  1. @override
String? toJson(
  1. ButtonTextTheme? object
)
override

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';
  }
}