custom static method

Insertable<CouponData> custom({
  1. Expression<int>? id,
  2. Expression<String>? code,
  3. Expression<String>? name,
  4. Expression<bool>? active,
  5. Expression<String>? type,
  6. Expression<String>? description,
})

Implementation

static Insertable<CouponData> custom({
  Expression<int>? id,
  Expression<String>? code,
  Expression<String>? name,
  Expression<bool>? active,
  Expression<String>? type,
  Expression<String>? description,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (code != null) 'code': code,
    if (name != null) 'name': name,
    if (active != null) 'active': active,
    if (type != null) 'type': type,
    if (description != null) 'description': description,
  });
}