toModel method

MonetizationSettings toModel()

Constructs the new MonetizationSettings from this MonetizationSettingsMixin.

Implementation

MonetizationSettings toModel() => MonetizationSettings(
  donation: donation == null
      ? null
      : MonetizationSettingsDonation(
          min: donation!.min.toModel(),
          enabled: donation!.enabled,
        ),
  user: user?.id,
  createdAt: createdAt,
);