toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DocumentStatus.creating:
      return 'Creating';
    case DocumentStatus.active:
      return 'Active';
    case DocumentStatus.updating:
      return 'Updating';
    case DocumentStatus.deleting:
      return 'Deleting';
    case DocumentStatus.failed:
      return 'Failed';
  }
}