toJson method

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

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