toJson method

String toJson()

Converts this enum value to a string for API requests.

Implementation

String toJson() {
  switch (this) {
    case ModelHashType.sha256:
      return 'SHA256';
    case ModelHashType.autoV2:
      return 'AutoV2';
    case ModelHashType.blake3:
      return 'Blake3';
    case ModelHashType.crc32:
      return 'CRC32';
  }
}