toContextKeyTypeEnum method

ContextKeyTypeEnum toContextKeyTypeEnum()

Implementation

ContextKeyTypeEnum toContextKeyTypeEnum() {
  switch (this) {
    case 'string':
      return ContextKeyTypeEnum.string;
    case 'stringList':
      return ContextKeyTypeEnum.stringList;
    case 'numeric':
      return ContextKeyTypeEnum.numeric;
    case 'numericList':
      return ContextKeyTypeEnum.numericList;
    case 'boolean':
      return ContextKeyTypeEnum.boolean;
    case 'booleanList':
      return ContextKeyTypeEnum.booleanList;
    case 'ip':
      return ContextKeyTypeEnum.ip;
    case 'ipList':
      return ContextKeyTypeEnum.ipList;
    case 'binary':
      return ContextKeyTypeEnum.binary;
    case 'binaryList':
      return ContextKeyTypeEnum.binaryList;
    case 'date':
      return ContextKeyTypeEnum.date;
    case 'dateList':
      return ContextKeyTypeEnum.dateList;
  }
  throw Exception('$this is not known in enum ContextKeyTypeEnum');
}