fromString static method
Converts a string to a ModelHashType enum value.
Implementation
static ModelHashType fromString(String value) {
switch (value.toLowerCase()) {
case 'sha256':
return ModelHashType.sha256;
case 'autov2':
return ModelHashType.autoV2;
case 'blake3':
return ModelHashType.blake3;
case 'crc32':
return ModelHashType.crc32;
default:
return ModelHashType.sha256;
}
}