toCompanion method

ScreenshotImagesCompanion toCompanion(
  1. bool nullToAbsent
)

Implementation

ScreenshotImagesCompanion toCompanion(bool nullToAbsent) {
  return ScreenshotImagesCompanion(
    id: Value(id),
    screenshotId: Value(screenshotId),
    url: Value(url),
    type: type == null && nullToAbsent ? const Value.absent() : Value(type),
    width: width == null && nullToAbsent
        ? const Value.absent()
        : Value(width),
    height: height == null && nullToAbsent
        ? const Value.absent()
        : Value(height),
  );
}