SendLevelResponse class abstract

Implemented types

Constructors

SendLevelResponse(String address, dynamic level, dynamic target, int remaining, int timestamp)
const
factory
SendLevelResponse.fromJson(Map<String, dynamic> json)
factory

Properties

address String
no setter
copyWith → $SendLevelResponseCopyWith<SendLevelResponse>
no setter
hashCode int
The hash code for this object.
no setterinherited
level → dynamic
no setter
remaining int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target → dynamic
no setter
timestamp int
no setter

Methods

map<TResult extends Object?>({required TResult sendLevel(SendLevelResponse value), required TResult sendRaw(SendRawResponse value), required TResult getState(GetStateResponse value), required TResult toggle(SetToggleResponse value), required TResult magicConfig(MagicConfigResponse value), required TResult setScenario(SetScenarioResponse value), required TResult setEpoch(SetEpochResponse value)}) → TResult
inherited
maybeMap<TResult extends Object?>({TResult sendLevel(SendLevelResponse value)?, TResult sendRaw(SendRawResponse value)?, TResult getState(GetStateResponse value)?, TResult toggle(SetToggleResponse value)?, TResult magicConfig(MagicConfigResponse value)?, TResult setScenario(SetScenarioResponse value)?, TResult setEpoch(SetEpochResponse value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult sendLevel(String address, dynamic level, dynamic target, int remaining, int timestamp)?, TResult sendRaw(String address, dynamic raw, dynamic target_raw, int timestamp)?, TResult getState(String address, dynamic level, dynamic target, String? status, int? remaining, int timestamp)?, TResult toggle(String address, dynamic level, dynamic target, int remaining, int timestamp)?, TResult magicConfig(String address, int io, int index, int value, int correlation, int timestamp)?, TResult setScenario(String node, int io, int scenario_id, int command, bool is_active, int level, int transition, int duration, int start_at, int days_in_week, int correlation, int? timestamp)?, TResult setEpoch(String node, int io, int epoch, int command, int time_zone, int correlation)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult sendLevel(String address, dynamic level, dynamic target, int remaining, int timestamp), required TResult sendRaw(String address, dynamic raw, dynamic target_raw, int timestamp), required TResult getState(String address, dynamic level, dynamic target, String? status, int? remaining, int timestamp), required TResult toggle(String address, dynamic level, dynamic target, int remaining, int timestamp), required TResult magicConfig(String address, int io, int index, int value, int correlation, int timestamp), required TResult setScenario(String node, int io, int scenario_id, int command, bool is_active, int level, int transition, int duration, int start_at, int days_in_week, int correlation, int? timestamp), required TResult setEpoch(String node, int io, int epoch, int command, int time_zone, int correlation)}) → TResult
inherited

Operators

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