RestApi class

Define an API.

Annotations
  • @immutable

Constructors

RestApi({String? baseUrl, bool? autoCastResponse, Parser serializer = Parser.MapSerializable, Parser deserializer = Parser.MapSerializable, bool compute = false})
const

Properties

autoCastResponse bool?
Automatically cast response to proper type for all methods in this client
final
baseUrl String?
Set the API base URL.
final
compute bool
Parse on a separate isolate using compute (Flutter only).
final
deserializer Parser
if you don't specify the deserializer. It will be Parser.MapSerializable
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializer Parser
if you don't specify the serializer. It will be Parser.MapSerializable
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