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 referencing subtypes from other files #28

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
3ef76c1
Call the class fromJson if _className_ isn't specified
miklcct May 16, 2024
71b8363
add explicitToJson annotation
miklcct May 16, 2024
538f25e
Merge remote-tracking branch 'refs/remotes/origin/configurable-explic…
miklcct May 16, 2024
49c6fd2
Support property name shadowing global types such as Type, String, In…
miklcct May 17, 2024
71eaeb3
Merge branch 'refs/heads/avoid_global_types'
miklcct May 17, 2024
a2b2741
add warning suppression for underscored types
miklcct May 17, 2024
902a087
Merge branch 'refs/heads/avoid_global_types'
miklcct May 17, 2024
941eb6b
only add typedefs if there are some outputs
miklcct May 17, 2024
83bfbeb
Merge branch 'refs/heads/avoid_global_types'
miklcct May 17, 2024
9c9aac5
disable all linter rules on generated files
miklcct May 17, 2024
8783e74
Merge branch 'refs/heads/flutter_warnings'
miklcct May 17, 2024
87bcafd
__List is not always used in generated files
miklcct May 17, 2024
0dd82f9
Merge branch 'refs/heads/avoid_global_types'
miklcct May 17, 2024
5267788
fixed naming
arrrrny Dec 3, 2024
92fab97
updated readme and changelog
arrrrny Dec 3, 2024
1c2270f
updated readme
arrrrny Dec 3, 2024
e5724ed
Merge branch 'master' into master
arrrrny Dec 3, 2024
bb94af5
change method name toJson_2 to toKsonCustom
arrrrny Dec 3, 2024
d017331
changed version to 2.0.0 to avoid confusions
arrrrny Dec 3, 2024
afa33eb
added back the throwing error if class type is not supported
arrrrny Dec 3, 2024
09eed66
dependency override to reference from git
arrrrny Dec 3, 2024
df83497
git referencing
arrrrny Dec 3, 2024
c19d178
git madness
arrrrny Dec 3, 2024
044325f
git refe
arrrrny Dec 3, 2024
116c7cf
we need the default FromJson
arrrrny Dec 3, 2024
ebd55ef
added toJsonClean to easily extract data to be used outside
arrrrny Dec 3, 2024
0ac3997
added toJsonLean and fromJsonLean to better intregrate to external sy…
arrrrny Dec 3, 2024
a4a99c4
updated version
arrrrny Dec 3, 2024
7b0b35a
refactored to support subtypes from different files
arrrrny Dec 4, 2024
b425fb0
better layout
arrrrny Dec 4, 2024
1721f5a
Merge pull request #1 from arrrrny/git-ref
arrrrny Dec 4, 2024
8ca52f9
checkpoint
arrrrny Dec 4, 2024
6b2a24a
throw error for neccessary imports
arrrrny Dec 4, 2024
411751c
version to 2.0.0
arrrrny Dec 4, 2024
bb244eb
Merge pull request #2 from arrrrny/git-ref
arrrrny Dec 4, 2024
2708261
added compareTo jsonHeader as default to true to set compareTo method
arrrrny Dec 5, 2024
7e5bdd4
fixed wron jsonserializable annotation
arrrrny Dec 5, 2024
542a5cf
Merge pull request #3 from arrrrny/git-ref
arrrrny Dec 5, 2024
acb2653
added non null for nullable but not null field
arrrrny Dec 5, 2024
1c2acd6
annotations update
arrrrny Dec 5, 2024
c92e151
Merge pull request #4 from arrrrny/git-ref
arrrrny Dec 5, 2024
4400780
added Patch type definition
arrrrny Dec 5, 2024
e3be723
Merge pull request #5 from arrrrny/git-ref
arrrrny Dec 5, 2024
52fbb8a
added more types to primitive compare
arrrrny Dec 5, 2024
c8c6227
Merge pull request #6 from arrrrny/git-ref
arrrrny Dec 5, 2024
d23be1b
supporting nested compareToEnum nested name
arrrrny Dec 6, 2024
54d0e37
Merge pull request #7 from arrrrny/git-ref
arrrrny Dec 6, 2024
b5d1141
implemented comprehensive non primitive type comparisons and enum com…
arrrrny Dec 6, 2024
0035dc2
Merge pull request #8 from arrrrny/git-ref
arrrrny Dec 6, 2024
7339c12
all tests pass with changes for ability to reference from external fi…
arrrrny Dec 8, 2024
ed426bf
added tests for toJsonLean
arrrrny Dec 8, 2024
daeb832
Merge pull request #9 from arrrrny/git-ref
arrrrny Dec 8, 2024
91369c2
type safe entity patch
arrrrny Dec 14, 2024
5bbcff0
Merge pull request #10 from arrrrny/git-ref
arrrrny Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Call the class fromJson if _className_ isn't specified
miklcct authored May 16, 2024
commit 3ef76c1ab4bbe58e89459dd65078035bb2397098
2 changes: 1 addition & 1 deletion morphy/lib/src/helpers.dart
Original file line number Diff line number Diff line change
@@ -425,7 +425,7 @@ String generateFromJsonBody(String className, List<NameType> generics, List<Inte
var _className = className.replaceFirst("\$", "").replaceFirst("\$", "");

var end = """ } else {
throw UnsupportedError("The _className_ '\${json['_className_']}' is not supported by the ${_className}.fromJson constructor.");
return _\$${_className}FromJson(json, );
}
}
""";