toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LedgerState.creating:
      return 'CREATING';
    case LedgerState.active:
      return 'ACTIVE';
    case LedgerState.deleting:
      return 'DELETING';
    case LedgerState.deleted:
      return 'DELETED';
  }
}