toJson method
Implementation
@override
String? toJson(StackFit? object) {
if (object == null) return null;
switch (object) {
case StackFit.expand:
return 'expand';
case StackFit.loose:
return 'loose';
case StackFit.passthrough:
return 'passthrough';
}
}