toModel method

UserCallCover toModel()

Constructs a new UserCallCover from this UserCallCoverMixin.

Implementation

UserCallCover toModel() => UserCallCover(
  full: full.toModel(),
  original: original.toModel(),
  vertical: vertical.toModel(),
  square: square.toModel(),
  crop: crop != null
      ? CropArea(
          topLeft: CropPoint(x: crop!.topLeft.x, y: crop!.topLeft.y),
          bottomRight: CropPoint(
            x: crop!.bottomRight.x,
            y: crop!.bottomRight.y,
          ),
          angle: crop?.angle,
        )
      : null,
);