toTrustState method
Implementation
TrustState toTrustState() {
switch (this) {
case 'Creating':
return TrustState.creating;
case 'Created':
return TrustState.created;
case 'Verifying':
return TrustState.verifying;
case 'VerifyFailed':
return TrustState.verifyFailed;
case 'Verified':
return TrustState.verified;
case 'Updating':
return TrustState.updating;
case 'UpdateFailed':
return TrustState.updateFailed;
case 'Updated':
return TrustState.updated;
case 'Deleting':
return TrustState.deleting;
case 'Deleted':
return TrustState.deleted;
case 'Failed':
return TrustState.failed;
}
throw Exception('$this is not known in enum TrustState');
}