fromJson method

  1. @override
StackFit? fromJson(
  1. String? json
)

Implementation

@override
StackFit? fromJson(String? json) {
  if (json == null) return null;

  switch (json) {
    case 'expand':
      return StackFit.expand;

    case 'loose':
      return StackFit.loose;

    case 'passthrough':
      return StackFit.passthrough;
  }

  throw 'Unsuported_Json_Value';
}