toCertificateState method
Implementation
CertificateState toCertificateState() {
switch (this) {
case 'Registering':
return CertificateState.registering;
case 'Registered':
return CertificateState.registered;
case 'RegisterFailed':
return CertificateState.registerFailed;
case 'Deregistering':
return CertificateState.deregistering;
case 'Deregistered':
return CertificateState.deregistered;
case 'DeregisterFailed':
return CertificateState.deregisterFailed;
}
throw Exception('$this is not known in enum CertificateState');
}