copyWith method

CouponCompanion copyWith({
  1. Value<int>? id,
  2. Value<String>? code,
  3. Value<String>? name,
  4. Value<bool>? active,
  5. Value<String>? type,
  6. Value<String?>? description,
})

Implementation

CouponCompanion copyWith({
  Value<int>? id,
  Value<String>? code,
  Value<String>? name,
  Value<bool>? active,
  Value<String>? type,
  Value<String?>? description,
}) {
  return CouponCompanion(
    id: id ?? this.id,
    code: code ?? this.code,
    name: name ?? this.name,
    active: active ?? this.active,
    type: type ?? this.type,
    description: description ?? this.description,
  );
}