Skip to content

feat: add generics support #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

feat: add generics support #81

wants to merge 6 commits into from

Conversation

ChiragAgg5k
Copy link
Member

What does this PR do?

(Provide a description of what this PR does.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

@ChiragAgg5k ChiragAgg5k requested a review from Copilot July 21, 2025 11:24
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive generics support to the Dart Appwrite SDK by making model classes generic to support type-safe serialization and deserialization. The key changes include making core model classes generic, updating factory methods to accept optional serialization functions, and adding generics support to all service methods.

  • Version bump from 16.1.0 to 16.2.0 to reflect this new feature
  • Model classes (Document, User, Team, etc.) now support generic type parameters
  • Service methods updated to support type-safe operations with optional fromJson functions

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pubspec.yaml Version bump to 16.2.0
lib/src/models/*.dart Added generic type parameters to model classes and updated fromMap methods
lib/services/*.dart Updated service methods to support generics with optional fromJson parameters
lib/src/client_*.dart Updated SDK version headers to 16.2.0
README.md Updated version reference in documentation

@ChiragAgg5k ChiragAgg5k deleted the dev-chirag branch July 23, 2025 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant