toJson method
Implementation
@override
String? toJson(ButtonBarLayoutBehavior? object) {
if (object == null) return null;
switch (object) {
case ButtonBarLayoutBehavior.constrained:
return 'constrained';
case ButtonBarLayoutBehavior.padded:
return 'padded';
}
}