typeFromString method

Type typeFromString()

Implementation

Type typeFromString() {
  switch (this) {
    case 'biometry':
      return Type.biometry;
    case 'quality':
      return Type.quality;
    case 'documents':
      return Type.documents;
    default:
      throw Exception(
          'Incorrect Type string representation. Expected: biometry, quality or documents, was $this');
  }
}