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