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