Map<String, dynamic> toJson() { return { 'context': context.toJson(), 'attributes': attributes.map((e) => e.toJson()).toList(), 'droppedAttributes': droppedAttributes, }; }