toJson method
Implementation
Map<String, dynamic> toJson() {
final attributePayload = this.attributePayload;
final thingGroupDescription = this.thingGroupDescription;
return {
if (attributePayload != null) 'attributePayload': attributePayload,
if (thingGroupDescription != null)
'thingGroupDescription': thingGroupDescription,
};
}