Map<String, dynamic> toJson() { final events = this.events; final sNSTopic = this.sNSTopic; return { if (events != null) 'Events': events, if (sNSTopic != null) 'SNSTopic': sNSTopic, }; }