authentication.m.dart 883 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. class StorageAuthenticationInfo {
  2. String? authorization;
  3. String? fileToken;
  4. String? contentType;
  5. StorageAuthenticationInfo({
  6. this.authorization,
  7. this.fileToken,
  8. this.contentType,
  9. });
  10. factory StorageAuthenticationInfo.fromJson(Map<String, dynamic> map) {
  11. return StorageAuthenticationInfo(
  12. authorization: map['Authorization'],
  13. fileToken: map['FileToken'],
  14. contentType: map['ContentType'],
  15. );
  16. }
  17. Map<String, dynamic> toJson() {
  18. final map = Map<String, dynamic>();
  19. if(authorization != null)
  20. map['Authorization'] = authorization;
  21. if(fileToken != null)
  22. map['FileToken'] = fileToken;
  23. if(contentType != null)
  24. map['ContentType'] = contentType;
  25. return map;
  26. }
  27. }
  28. enum UploadFileType {
  29. Unknown,
  30. EXE,
  31. APK,
  32. IPA,
  33. ZIP,
  34. DAT,
  35. RAR,
  36. PNG,
  37. ICON,
  38. BMP,
  39. JPEG,
  40. JPG,
  41. GIF,
  42. WEBP,
  43. TIFF,
  44. IMG,
  45. PDF,
  46. DOC,
  47. DOCX,
  48. XLS,
  49. XLSX,
  50. MP4,
  51. MSI,
  52. VID,
  53. }