toCompanion method

CompanyCompanion toCompanion(
  1. bool nullToAbsent
)

Implementation

CompanyCompanion toCompanion(bool nullToAbsent) {
  return CompanyCompanion(
    id: Value(id),
    companyIdParent: companyIdParent == null && nullToAbsent
        ? const Value.absent()
        : Value(companyIdParent),
    code: Value(code),
    name: Value(name),
    imagePath: imagePath == null && nullToAbsent
        ? const Value.absent()
        : Value(imagePath),
    description: description == null && nullToAbsent
        ? const Value.absent()
        : Value(description),
  );
}