toBlockType method

BlockType toBlockType()

Implementation

BlockType toBlockType() {
  switch (this) {
    case 'KEY_VALUE_SET':
      return BlockType.keyValueSet;
    case 'PAGE':
      return BlockType.page;
    case 'LINE':
      return BlockType.line;
    case 'WORD':
      return BlockType.word;
    case 'TABLE':
      return BlockType.table;
    case 'CELL':
      return BlockType.cell;
    case 'SELECTION_ELEMENT':
      return BlockType.selectionElement;
  }
  throw Exception('$this is not known in enum BlockType');
}