toLedgerState method
Implementation
LedgerState toLedgerState() {
switch (this) {
case 'CREATING':
return LedgerState.creating;
case 'ACTIVE':
return LedgerState.active;
case 'DELETING':
return LedgerState.deleting;
case 'DELETED':
return LedgerState.deleted;
}
throw Exception('$this is not known in enum LedgerState');
}