toJson method

Map<String, dynamic> toJson()

Implementation

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