Map<String, dynamic> toJson() { final action = this.action; final attribute = this.attribute; return { if (action != null) 'Action': action.toValue(), if (attribute != null) 'Attribute': attribute, }; }