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

support jsonc $id $ref #106

Open
1 task done
xtsemeta opened this issue Jun 2, 2023 · 0 comments
Open
1 task done

support jsonc $id $ref #106

xtsemeta opened this issue Jun 2, 2023 · 0 comments

Comments

@xtsemeta
Copy link

xtsemeta commented Jun 2, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

No response

Expected Behavior

**.jsonc
{
"$id":"path_to_class_or_any_unique_id_a",// id
"__className":"ClassA",
"id":"No.001",
"name":"JsonToDart"
}
{
"$id":"path_to_class_or_any_unique_id_b",// id
"__className":"ClassB",
"id":"No.002",
"name":"JsonToDart",
"key1":{"$ref":"path_to_class_or_any_unique_id_a"},
"key2":[{"$ref":"path_to_class_or_any_unique_id_a"}]
}

**.dart
class ClassA{
final String id;
final String name;

...
}

class ClassB{
final String id;
final String name;

final ClassA key1;
final List key2;
...
}

Steps To Reproduce

No response

Version

No response

Relevant JSON syntax

No response

Anything else?

No response

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

No branches or pull requests

1 participant