AlifResponse<T> class

A response object from an ALIF device

Mixed in types
Annotations
  • @MappableClass()

Constructors

AlifResponse({required int version, required DateTime timestamp, required bool isSuccessful, List<AlifError> errors = const [], T? body})
A response object from an ALIF device

Properties

body ↔ T?
Other data returned as part of the request
getter/setter pair
copyWith AlifResponseCopyWith<AlifResponse, AlifResponse, AlifResponse, dynamic>
no setterinherited
errors List<AlifError>
List of ALIF errors that have occured
final
hashCode int
The hash code for this object.
no setterinherited
isSuccessful bool
true: successful request false: unsuccessful request (error)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
The current server time
final
version int
The current API version number
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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