piStringToDnsSecStatus function
Implementation
DnsSecStatus piStringToDnsSecStatus(String json) {
final int index = int.parse(json);
if (index > DnsSecStatus.values.length || index == 0) {
return DnsSecStatus.values.first;
}
return DnsSecStatus.values[index - 1];
}