toJson method
Implementation
Map<String, dynamic> toJson() {
final attribute = this.attribute;
final name = this.name;
final roleArn = this.roleArn;
final thingName = this.thingName;
final next = this.next;
return {
'attribute': attribute,
'name': name,
'roleArn': roleArn,
'thingName': thingName,
if (next != null) 'next': next,
};
}