decode method

  1. @override
FileType decode(
  1. dynamic value
)
override

Implementation

@override
FileType decode(dynamic value) {
  switch (value) {
    case 'pack':
      return FileType.pack;
    case 'game':
      return FileType.game;
    case 'template':
      return FileType.template;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}