encode method

  1. @override
dynamic encode(
  1. FileType self
)
override

Implementation

@override
dynamic encode(FileType self) {
  switch (self) {
    case FileType.pack:
      return 'pack';
    case FileType.game:
      return 'game';
    case FileType.template:
      return 'template';
  }
}