toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BlockType.keyValueSet:
      return 'KEY_VALUE_SET';
    case BlockType.page:
      return 'PAGE';
    case BlockType.line:
      return 'LINE';
    case BlockType.word:
      return 'WORD';
    case BlockType.table:
      return 'TABLE';
    case BlockType.cell:
      return 'CELL';
    case BlockType.selectionElement:
      return 'SELECTION_ELEMENT';
  }
}