RestSimplified class

Main entry point for the API.

Constructors

RestSimplified.build(String baseURL, {HeaderBuilder? defaultHeaderBuilder})
Factory to setup the library. It is possible to define a HeaderBuilder that can be used for each request. In case the HeaderBuilder is not provided then you can define it when accessing to each request (see RestAccessor) baseURL is used to build the full URL, See addPath
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addFromJsonMapParser<T>(FromJsonParser parser) → void
In order to deserialize a bean from Json format you need to add a FromJsonParser. For instance: addFromJsonMapParser
addPath<T>(Method protocol, String path) → void
This method is used to map URL with a Bean that is sent to the server and a protocol. For instance: addPath
addToJsonMapParser<T>(ToJsonMapParser parser) → void
In order to serialize a bean to Json format you need to add a ToJsonMapParser. For instance: addToJsonMapParser
getRestAccessor() RestAccessor
Accessor to the Rest/HTTP operations. See RestAccessor
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