Class JsonParameter
- Namespace
- RestSharp
- Assembly
- RestSharp.dll
public record JsonParameter : BodyParameter, IEquatable<Parameter>, IEquatable<BodyParameter>, IEquatable<JsonParameter>
- Inheritance
-
JsonParameter
- Implements
- Inherited Members
Constructors
JsonParameter(JsonParameter)
protected JsonParameter(JsonParameter original)
Parameters
original
JsonParameter
JsonParameter(string, object, string)
public JsonParameter(string name, object value, string contentType = "application/json")
Parameters
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Equals(BodyParameter?)
public override sealed bool Equals(BodyParameter? other)
Parameters
other
BodyParameter
Returns
Equals(JsonParameter?)
public virtual bool Equals(JsonParameter? other)
Parameters
other
JsonParameter
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
Return a human-readable representation of this parameter
public override string ToString()
Returns
- string
String
Operators
operator ==(JsonParameter?, JsonParameter?)
public static bool operator ==(JsonParameter? left, JsonParameter? right)
Parameters
left
JsonParameterright
JsonParameter
Returns
operator !=(JsonParameter?, JsonParameter?)
public static bool operator !=(JsonParameter? left, JsonParameter? right)
Parameters
left
JsonParameterright
JsonParameter