toJson method
Implementation
@override
String? toJson(SnackBarBehavior? object) {
if (object == null) return null;
switch (object) {
case SnackBarBehavior.fixed:
return 'fixed';
case SnackBarBehavior.floating:
return 'floating';
}
}