Skip to content
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

Feat: support nested non-primitive types for TypedExtras #723

Merged

Conversation

farmery
Copy link
Contributor

@farmery farmery commented Nov 12, 2024

Features

Nested Attribute Mapping: Adds the ability to parse and include nested non primitive objects.

Example:

@RestApi()
abstract class TypedExtrasTest {
  @DummyTypedExtras(
    id: '1234',
    config: Config(
      date: '24-10-2024',
      type: 'analytics',
      shouldReplace: true,
      subConfig: {'date': '24-11-2025'},
    ),
  )
  @GET('path')
  Future<void> list();
}

@farmery
Copy link
Contributor Author

farmery commented Nov 12, 2024

Hi @trevorwang, Please can you review this change?

@trevorwang trevorwang merged commit a5c49fa into trevorwang:master Nov 14, 2024
2 checks passed
@trevorwang
Copy link
Owner

Thanks for the contribution

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.

2 participants