JsonApiMixin class abstract

Abstract mixin class that implements JsonApi.get and JsonApi.post.

Implemented types
Implementers

Constructors

JsonApiMixin()

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.
override
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.
override
toString() String
A string representation of this object.
inherited

Operators

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