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