copyWith method

PairingStruct copyWith({
  1. String? topic,
  2. int? expiry,
  3. RelayerProtocolOptions? relay,
  4. bool? active,
  5. AppMetadata? peerMetadata,
})

Implementation

PairingStruct copyWith({
  String? topic,
  int? expiry,
  RelayerProtocolOptions? relay,
  bool? active,
  AppMetadata? peerMetadata,
}) {
  return PairingStruct(
    topic: topic ?? this.topic,
    expiry: expiry ?? this.expiry,
    relay: relay ?? this.relay,
    active: active ?? this.active,
    peerMetadata: peerMetadata ?? this.peerMetadata,
  );
}