fromString static method
Converts a string value to the corresponding RopeScalingType
enum value.
Implementation
static RopeScalingType fromString(String value) {
switch (value) {
case 'none':
return RopeScalingType.none;
case 'linear':
return RopeScalingType.linear;
case 'yarn':
return RopeScalingType.yarn;
case 'longrope':
return RopeScalingType.longrope;
default:
return RopeScalingType.unspecified;
}
}