DeviceCommand constructor
Implementation
DeviceCommand({
String? id,
required this.payload,
DateTime? timestamp,
required this.type,
}) : id = id ?? const Uuid().v4(),
timestamp = timestamp ?? DateTime.now();
DeviceCommand({
String? id,
required this.payload,
DateTime? timestamp,
required this.type,
}) : id = id ?? const Uuid().v4(),
timestamp = timestamp ?? DateTime.now();