copyWith method
UnsupportedProtocolVersionError
copyWith({
- UnsupportedProtocolVersionErrorError? error,
- Object? id,
A copy with the given properties replaced; everything else, unknown keys included, is kept.
Implementation
UnsupportedProtocolVersionError copyWith({
UnsupportedProtocolVersionErrorError? error,
Object? id,
}) =>
UnsupportedProtocolVersionError.fromJson({
...toJson(),
if (error != null) 'error': $encode(error),
if (id != null) 'id': $encode(id),
});