Map<String, dynamic> toJson() { final externalUserId = this.externalUserId; final tags = this.tags; return { 'ExternalUserId': externalUserId, if (tags != null) 'Tags': tags, }; }