toModel method

UserAvatar toModel()

Constructs a new UserAvatar from this UserAvatarMixin.

Implementation

UserAvatar toModel() => UserAvatar(
  full: full.toModel(),
  original: original.toModel(),
  big: big.toModel(),
  medium: medium.toModel(),
  small: small.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,
);