copyWith method

Input$CreateSponsorshipInput copyWith({
  1. int? amount()?,
  2. String? clientMutationId()?,
  3. bool? isRecurring()?,
  4. Enum$SponsorshipPrivacy? privacyLevel()?,
  5. bool? receiveEmails()?,
  6. String? sponsorId()?,
  7. String? sponsorLogin()?,
  8. String? sponsorableId()?,
  9. String? sponsorableLogin()?,
  10. String? tierId()?,
})

Implementation

Input$CreateSponsorshipInput copyWith(
        {int? Function()? amount,
        String? Function()? clientMutationId,
        bool? Function()? isRecurring,
        Enum$SponsorshipPrivacy? Function()? privacyLevel,
        bool? Function()? receiveEmails,
        String? Function()? sponsorId,
        String? Function()? sponsorLogin,
        String? Function()? sponsorableId,
        String? Function()? sponsorableLogin,
        String? Function()? tierId}) =>
    Input$CreateSponsorshipInput(
        amount: amount == null ? this.amount : amount(),
        clientMutationId: clientMutationId == null
            ? this.clientMutationId
            : clientMutationId(),
        isRecurring: isRecurring == null ? this.isRecurring : isRecurring(),
        privacyLevel:
            privacyLevel == null ? this.privacyLevel : privacyLevel(),
        receiveEmails:
            receiveEmails == null ? this.receiveEmails : receiveEmails(),
        sponsorId: sponsorId == null ? this.sponsorId : sponsorId(),
        sponsorLogin:
            sponsorLogin == null ? this.sponsorLogin : sponsorLogin(),
        sponsorableId:
            sponsorableId == null ? this.sponsorableId : sponsorableId(),
        sponsorableLogin: sponsorableLogin == null
            ? this.sponsorableLogin
            : sponsorableLogin(),
        tierId: tierId == null ? this.tierId : tierId());