Map<String, dynamic> toJson() { final accountId = this.accountId; final email = this.email; return { 'AccountId': accountId, if (email != null) 'Email': email, }; }