SunnyApi<M extends Entity> class abstract

Inheritance
Available extensions

Constructors

SunnyApi(ApiRegistry apis, MModelInstantiator<M> _factoryMethod)

Properties

apis ApiRegistry
A reference back to the api registry
final
hashCode int
The hash code for this object.
no setterinherited
mtype MSchemaRef
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone(M source) → M
Copies values from one entity into another. This clone operation is important because it allows
override
create(M body) Future<M>
inherited
delete(String id) Future<DeleteResponse>
inherited
initialize(M entity) → M
inherited
instantiate([dynamic json]) → M
override
keyToId(MKey? key) String?
override
list({double? limit, double? offset}) Future<MModelList<M>>
inherited
load(String id) Future<M>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
takeFrom(M source, M target) → void
Copies all data from source into target. Used when you want to maintain a reference to target, but want to inject new values from source
override
toString() String
A string representation of this object.
inherited
update(String id, M body) Future<ChangeResult>
inherited

Operators

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