copyWith method

JsonRpcRecord copyWith({
  1. int? id,
  2. String? topic,
  3. Map<String, dynamic>? request,
  4. String? chainId,
  5. Map<String, dynamic>? response,
})

Implementation

JsonRpcRecord copyWith({
  int? id,
  String? topic,
  Map<String, dynamic>? request,
  String? chainId,
  Map<String, dynamic>? response,
}) {
  return JsonRpcRecord(
    id: id ?? this.id,
    topic: topic ?? this.topic,
    request: request ?? this.request,
    chainId: chainId ?? this.chainId,
    response: response ?? this.response,
  );
}