copyWith method

SessionStruct copyWith({
  1. String? topic,
  2. RelayerProtocolOptions? relay,
  3. int? expiry,
  4. bool? acknowledged,
  5. String? controller,
  6. SessionNamespaces? namespaces,
  7. ProposalRequiredNamespaces? requiredNamespaces,
  8. SessionPublicKeyMetadata? self,
  9. SessionPublicKeyMetadata? peer,
})

Implementation

SessionStruct copyWith({
  String? topic,
  RelayerProtocolOptions? relay,
  int? expiry,
  bool? acknowledged,
  String? controller,
  SessionNamespaces? namespaces,
  ProposalRequiredNamespaces? requiredNamespaces,
  SessionPublicKeyMetadata? self,
  SessionPublicKeyMetadata? peer,
}) {
  return SessionStruct(
    topic: topic ?? this.topic,
    relay: relay ?? this.relay,
    expiry: expiry ?? this.expiry,
    acknowledged: acknowledged ?? this.acknowledged,
    controller: controller ?? this.controller,
    namespaces: namespaces ?? this.namespaces,
    requiredNamespaces: requiredNamespaces ?? this.requiredNamespaces,
    self: self ?? this.self,
    peer: peer ?? this.peer,
  );
}