JsonApiBase class abstract

Implementation base class for JsonApi with a const default constructor.

Mixed-in types

Constructors

JsonApiBase()
A const default generative constructor.
const

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

get({required String host, String? path, Map<String, String>? queryParameters, Map<String, String>? headers, bool isHttps = true, Duration timeout = const Duration(seconds: 5)}) Future<JSON>
Fetches the JSON object from the HTTP endpoint using the path, queryParameters and headers for the RESTful service host.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post({required String host, String? path, Map<String, String>? queryParameters, Map<String, String>? headers, JSON? body, bool isHttps = true}) Future<JSON?>
Posts JSON body to the HTTP endpoint using thehost, path, queryParameters and headers using HTTPS if isHttps.
inherited
toString() String
A string representation of this object.
inherited

Operators

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