toDynamoKeyType method

DynamoKeyType toDynamoKeyType()

Implementation

DynamoKeyType toDynamoKeyType() {
  switch (this) {
    case 'STRING':
      return DynamoKeyType.string;
    case 'NUMBER':
      return DynamoKeyType.number;
  }
  throw Exception('$this is not known in enum DynamoKeyType');
}