fileTypeFromString method

FileType fileTypeFromString()

Implementation

FileType fileTypeFromString() {
  switch (this) {
    case 'documentPhoto':
      return FileType.documentPhoto;
    case 'video':
      return FileType.video;
    case 'shotSet':
      return FileType.shotSet;
    default:
      throw Exception('Invalid argument $this, expected documentPhoto, video or shotSet');
  }
}