toJson method

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

Implementation

@override
String? toJson(ButtonBarLayoutBehavior? object) {
  if (object == null) return null;

  switch (object) {
    case ButtonBarLayoutBehavior.constrained:
      return 'constrained';
    case ButtonBarLayoutBehavior.padded:
      return 'padded';
  }
}