ListDevicesResponse class

Response associated with a ListDevicesCommand that provides the list of connected devices.

Inheritance

Constructors

ListDevicesResponse({required List<ConnectedDevice> devices, String? message, bool? success})

Properties

devices List<ConnectedDevice>
final
hashCode int
The hash code for this object.
no setterinherited
message String?
The optional message associated with the response.
finalinherited
payload → dynamic
The type-specific payload. The value of which is defined by each sub-class.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool?
Optional success flag. If set the process is complete. If null, the process associated with the command is still running.
finalinherited
type String
The type. Used to define the payload and response class.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
inherited
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

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

Static Methods

fromDynamic(dynamic map, String? message, bool? success) ListDevicesResponse
Processes a Map or Map-like object into a response. If the map is null then this will return null.
override

Constants

kResponseType → const String