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

BuiltVlue Map<String, dynamic> #1329

Open
CreatSuns opened this issue Oct 9, 2024 · 1 comment
Open

BuiltVlue Map<String, dynamic> #1329

CreatSuns opened this issue Oct 9, 2024 · 1 comment
Assignees
Labels

Comments

@CreatSuns
Copy link

dataSource:
{
"code": 200,
"data": {
"title": "home",
"select": true,
...
}
}

abstract class LoginResponse
implements Built<LoginResponse, LoginResponseBuilder> {

int? get code;

Map<String, dynamic>? data;
}

I don't need to care about the contents of the data, I just need to use Map to receive the data. What should I do

@davidmorgan
Copy link
Collaborator

That's what the JsonObject class is for.

You could make data a JsonObject, or possibly a Map<String, JsonObject>, I don't remember if that works.

@davidmorgan davidmorgan self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants