toPBType method

DataStream_OperationType toPBType()

Implementation

lk_models.DataStream_OperationType toPBType() {
  switch (this) {
    case TextStreamOperationType.create:
      return lk_models.DataStream_OperationType.CREATE;
    case TextStreamOperationType.update:
      return lk_models.DataStream_OperationType.UPDATE;
    case TextStreamOperationType.delete:
      return lk_models.DataStream_OperationType.DELETE;
    case TextStreamOperationType.reaction:
      return lk_models.DataStream_OperationType.REACTION;
  }
}