ProtobufOptions class

Constructors

ProtobufOptions({String contentType = 'application/x-protobuf', GeneratedMessage? requestMessage, ShouldDeserialize shouldDeserialize = defaultShouldDeserialize, ShouldSerialize shouldSerialize = defaultShouldSerialize, GeneratedMessage? responseMessage})
const

Properties

contentType String
The value of the content type header sent to server.
final
hashCode int
The hash code for this object.
no setterinherited
requestMessage → GeneratedMessage?
The request message that will be serialized and added to request body.
final
responseMessage → GeneratedMessage?
The response message prototype that will be used for deserializing content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldDeserialize ShouldDeserialize
Indicates whether a response should be deserialized.
final
shouldSerialize ShouldSerialize
Indicates whether a request should be serialized.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

defaultShouldDeserialize(StreamedResponse response) bool
defaultShouldSerialize(BaseRequest request) bool