validateTTR static method
Implementation
static int? validateTTR(int? ttrMs) {
if (ttrMs == null || ttrMs == 0) {
return null;
}
if (ttrMs <= -2) {
throw InvalidSyntaxException(
'Valid values for TTR are -1 and greater than or equal to 1');
}
return ttrMs;
}