Map<String, dynamic> toJson() => { 'deviceId': deviceId, 'type': type, 'attributes': attributes, 'description': description };