fromJson method

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

Implementation

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

  switch (json) {
    case 'max':
      return MainAxisSize.max;

    case 'min':
      return MainAxisSize.min;
  }

  throw 'Unsuported_Json_Value';
}