copyWithWrapped method

JWKPublicKey copyWithWrapped({
  1. Wrapped<String>? alg,
  2. Wrapped<String>? crv,
  3. Wrapped<String>? kid,
  4. Wrapped<String>? kty,
  5. Wrapped<String>? use,
  6. Wrapped<String>? x,
  7. Wrapped<String>? y,
  8. Wrapped<int>? createdAt,
  9. Wrapped<int?>? expiredAt,
})

Implementation

JWKPublicKey copyWithWrapped(
    {Wrapped<String>? alg,
    Wrapped<String>? crv,
    Wrapped<String>? kid,
    Wrapped<String>? kty,
    Wrapped<String>? use,
    Wrapped<String>? x,
    Wrapped<String>? y,
    Wrapped<int>? createdAt,
    Wrapped<int?>? expiredAt}) {
  return JWKPublicKey(
      alg: (alg != null ? alg.value : this.alg),
      crv: (crv != null ? crv.value : this.crv),
      kid: (kid != null ? kid.value : this.kid),
      kty: (kty != null ? kty.value : this.kty),
      use: (use != null ? use.value : this.use),
      x: (x != null ? x.value : this.x),
      y: (y != null ? y.value : this.y),
      createdAt: (createdAt != null ? createdAt.value : this.createdAt),
      expiredAt: (expiredAt != null ? expiredAt.value : this.expiredAt));
}