toCompanion method

BlocklistCompanion toCompanion(
  1. bool nullToAbsent
)

Implementation

BlocklistCompanion toCompanion(bool nullToAbsent) {
  return BlocklistCompanion(
    userId: Value(userId),
    reason:
        reason == null && nullToAbsent ? const Value.absent() : Value(reason),
    at: Value(at),
    cursor:
        cursor == null && nullToAbsent ? const Value.absent() : Value(cursor),
  );
}