copyWith method

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

MissingRequiredClientCapabilityErrorError copyWith({
  MissingRequiredClientCapabilityErrorErrorData? data,
  String? message,
}) =>
    MissingRequiredClientCapabilityErrorError.fromJson({
      ...toJson(),
      if (data != null) 'data': $encode(data),
      if (message != null) 'message': $encode(message),
    });