Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
69test cases
73files differ
73modified
0new
0deleted
3,060changed lines
+1,530 −1,530insertions / deletions
Base f24a393cfc8de1ec963669bc23ded32d2ad5e09f · PR merge b809b5ed9d490380b1e7eac80e8e2c780ba1a626 · Head 841147cbe9d7e04e3bcb8ee7271528664917f3ed · raw patch
Test case

test/inputs/graphql/github1.graphql

1 generated file · +2 −2
Mgraphql-dartdefault / TopLevel.dart+2 −2
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -55,7 +55,7 @@ class User {
5555
5656 factory User.fromJson(Map<String, dynamic> json) => User(
5757 login: json["login"],
58- realName: json["realName"],
58+ realName: (json.containsKey("realName") ? json["realName"] : throw FormatException('Missing required property')),
5959 );
6060
6161 Map<String, dynamic> toJson() => {
Test case

test/inputs/graphql/github2.graphql

1 generated file · +2 −2
Mgraphql-dartdefault / TopLevel.dart+2 −2
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -75,7 +75,7 @@ class RepositoryConnection {
7575
7676 factory RepositoryConnection.fromJson(Map<String, dynamic> json) => RepositoryConnection(
7777 totalCount: json["totalCount"],
78- nodes: json["nodes"] == null ? null : List<Repository?>.from(json["nodes"]!.map((x) => x == null ? null : Repository.fromJson(x))),
78+ nodes: (json.containsKey("nodes") ? json["nodes"] : throw FormatException('Missing required property')) == null ? null : List<Repository?>.from((json.containsKey("nodes") ? json["nodes"] : throw FormatException('Missing required property'))!.map((x) => x == null ? null : Repository.fromJson(x))),
7979 );
8080
8181 Map<String, dynamic> toJson() => {
Test case

test/inputs/graphql/github3.graphql

1 generated file · +3 −3
Mgraphql-dartdefault / TopLevel.dart+3 −3
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -55,7 +55,7 @@ class User {
5555
5656 factory User.fromJson(Map<String, dynamic> json) => User(
5757 login: json["login"],
58- repository: json["repository"] == null ? null : Repository.fromJson(json["repository"]),
58+ repository: (json.containsKey("repository") ? json["repository"] : throw FormatException('Missing required property')) == null ? null : Repository.fromJson((json.containsKey("repository") ? json["repository"] : throw FormatException('Missing required property'))),
5959 );
6060
6161 Map<String, dynamic> toJson() => {
@@ -88,7 +88,7 @@ class PullRequestConnection {
8888 });
8989
9090 factory PullRequestConnection.fromJson(Map<String, dynamic> json) => PullRequestConnection(
91- nodes: json["nodes"] == null ? null : List<PullRequest?>.from(json["nodes"]!.map((x) => x == null ? null : PullRequest.fromJson(x))),
91+ nodes: (json.containsKey("nodes") ? json["nodes"] : throw FormatException('Missing required property')) == null ? null : List<PullRequest?>.from((json.containsKey("nodes") ? json["nodes"] : throw FormatException('Missing required property'))!.map((x) => x == null ? null : PullRequest.fromJson(x))),
9292 );
9393
9494 Map<String, dynamic> toJson() => {
Test case

test/inputs/graphql/github4.graphql

1 generated file · +4 −4
Mgraphql-dartdefault / TopLevel.dart+4 −4
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -57,8 +57,8 @@ class User {
5757
5858 factory User.fromJson(Map<String, dynamic> json) => User(
5959 login: json["login"],
60- name: json["name"],
61- repository: json["repository"] == null ? null : Repository.fromJson(json["repository"]),
60+ name: (json.containsKey("name") ? json["name"] : throw FormatException('Missing required property')),
61+ repository: (json.containsKey("repository") ? json["repository"] : throw FormatException('Missing required property')) == null ? null : Repository.fromJson((json.containsKey("repository") ? json["repository"] : throw FormatException('Missing required property'))),
6262 );
6363
6464 Map<String, dynamic> toJson() => {
@@ -92,7 +92,7 @@ class PullRequestConnection {
9292 });
9393
9494 factory PullRequestConnection.fromJson(Map<String, dynamic> json) => PullRequestConnection(
95- nodes: json["nodes"] == null ? null : List<PullRequest?>.from(json["nodes"]!.map((x) => x == null ? null : PullRequest.fromJson(x))),
95+ nodes: (json.containsKey("nodes") ? json["nodes"] : throw FormatException('Missing required property')) == null ? null : List<PullRequest?>.from((json.containsKey("nodes") ? json["nodes"] : throw FormatException('Missing required property'))!.map((x) => x == null ? null : PullRequest.fromJson(x))),
9696 );
9797
9898 Map<String, dynamic> toJson() => {
Test case

test/inputs/graphql/github5.graphql

1 generated file · +1 −1
Mgraphql-dartdefault / TopLevel.dart+1 −1
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
Test case

test/inputs/graphql/github6.graphql

1 generated file · +2 −2
Mgraphql-dartdefault / TopLevel.dart+2 −2
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -36,7 +36,7 @@ class Data {
3636 });
3737
3838 factory Data.fromJson(Map<String, dynamic> json) => Data(
39- resource: json["resource"] == null ? null : UniformResourceLocatable.fromJson(json["resource"]),
39+ resource: (json.containsKey("resource") ? json["resource"] : throw FormatException('Missing required property')) == null ? null : UniformResourceLocatable.fromJson((json.containsKey("resource") ? json["resource"] : throw FormatException('Missing required property'))),
4040 );
4141
4242 Map<String, dynamic> toJson() => {
Test case

test/inputs/graphql/github7.graphql

1 generated file · +3 −3
Mgraphql-dartdefault / TopLevel.dart+3 −3
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -76,7 +76,7 @@ class RepositoryConnection {
7676 });
7777
7878 factory RepositoryConnection.fromJson(Map<String, dynamic> json) => RepositoryConnection(
79- edges: json["edges"] == null ? null : List<RepositoryEdge?>.from(json["edges"]!.map((x) => x == null ? null : RepositoryEdge.fromJson(x))),
79+ edges: (json.containsKey("edges") ? json["edges"] : throw FormatException('Missing required property')) == null ? null : List<RepositoryEdge?>.from((json.containsKey("edges") ? json["edges"] : throw FormatException('Missing required property'))!.map((x) => x == null ? null : RepositoryEdge.fromJson(x))),
8080 );
8181
8282 Map<String, dynamic> toJson() => {
@@ -92,7 +92,7 @@ class RepositoryEdge {
9292 });
9393
9494 factory RepositoryEdge.fromJson(Map<String, dynamic> json) => RepositoryEdge(
95- node: json["node"] == null ? null : Repository.fromJson(json["node"]),
95+ node: (json.containsKey("node") ? json["node"] : throw FormatException('Missing required property')) == null ? null : Repository.fromJson((json.containsKey("node") ? json["node"] : throw FormatException('Missing required property'))),
9696 );
9797
9898 Map<String, dynamic> toJson() => {
Test case

test/inputs/graphql/github8.graphql

1 generated file · +4 −4
Mgraphql-dartdefault / TopLevel.dart+4 −4
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -36,7 +36,7 @@ class Data {
3636 });
3737
3838 factory Data.fromJson(Map<String, dynamic> json) => Data(
39- repository: json["repository"] == null ? null : Repository.fromJson(json["repository"]),
39+ repository: (json.containsKey("repository") ? json["repository"] : throw FormatException('Missing required property')) == null ? null : Repository.fromJson((json.containsKey("repository") ? json["repository"] : throw FormatException('Missing required property'))),
4040 );
4141
4242 Map<String, dynamic> toJson() => {
@@ -57,8 +57,8 @@ class Repository {
5757
5858 factory Repository.fromJson(Map<String, dynamic> json) => Repository(
5959 nameWithOwner: json["nameWithOwner"],
60- n303: json["n303"] == null ? null : IssueOrPullRequest.fromJson(json["n303"]),
61- n307: json["n307"] == null ? null : IssueOrPullRequest.fromJson(json["n307"]),
60+ n303: (json.containsKey("n303") ? json["n303"] : throw FormatException('Missing required property')) == null ? null : IssueOrPullRequest.fromJson((json.containsKey("n303") ? json["n303"] : throw FormatException('Missing required property'))),
61+ n307: (json.containsKey("n307") ? json["n307"] : throw FormatException('Missing required property')) == null ? null : IssueOrPullRequest.fromJson((json.containsKey("n307") ? json["n307"] : throw FormatException('Missing required property'))),
6262 );
6363
6464 Map<String, dynamic> toJson() => {
Test case

test/inputs/graphql/github9.graphql

1 generated file · +4 −4
Mgraphql-dartdefault / TopLevel.dart+4 −4
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- data: json["data"] == null ? null : Data.fromJson(json["data"]),
21+ data: (json.containsKey("data") ? json["data"] : throw FormatException('Missing required property')) == null ? null : Data.fromJson((json.containsKey("data") ? json["data"] : throw FormatException('Missing required property'))),
2222 errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))),
2323 );
2424
@@ -36,7 +36,7 @@ class Data {
3636 });
3737
3838 factory Data.fromJson(Map<String, dynamic> json) => Data(
39- addReaction: json["addReaction"] == null ? null : AddReactionPayload.fromJson(json["addReaction"]),
39+ addReaction: (json.containsKey("addReaction") ? json["addReaction"] : throw FormatException('Missing required property')) == null ? null : AddReactionPayload.fromJson((json.containsKey("addReaction") ? json["addReaction"] : throw FormatException('Missing required property'))),
4040 );
4141
4242 Map<String, dynamic> toJson() => {
@@ -56,7 +56,7 @@ class AddReactionPayload {
5656 });
5757
5858 factory AddReactionPayload.fromJson(Map<String, dynamic> json) => AddReactionPayload(
59- clientMutationId: json["clientMutationId"],
59+ clientMutationId: (json.containsKey("clientMutationId") ? json["clientMutationId"] : throw FormatException('Missing required property')),
6060 reaction: Reaction.fromJson(json["reaction"]),
6161 subject: Reactable.fromJson(json["subject"]),
6262 );
@@ -113,7 +113,7 @@ class Reactable {
113113
114114 factory Reactable.fromJson(Map<String, dynamic> json) => Reactable(
115115 viewerCanReact: json["viewerCanReact"],
116- reactionGroups: json["reactionGroups"] == null ? null : List<Reaction>.from(json["reactionGroups"]!.map((x) => Reaction.fromJson(x))),
116+ reactionGroups: (json.containsKey("reactionGroups") ? json["reactionGroups"] : throw FormatException('Missing required property')) == null ? null : List<Reaction>.from((json.containsKey("reactionGroups") ? json["reactionGroups"] : throw FormatException('Missing required property'))!.map((x) => Reaction.fromJson(x))),
117117 );
118118
119119 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/050b0.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<OtherName>.from(json["other_names"].map((x) => OtherName.fromJson(x))),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
4242
@@ -145,7 +145,7 @@ class OtherName {
145145
146146 factory OtherName.fromJson(Map<String, dynamic> json) => OtherName(
147147 name: json["name"],
148- note: json["note"],
148+ note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')),
149149 );
150150
151151 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/06bee.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<dynamic>.from(json["other_names"].map((x) => x)),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
Test case

test/inputs/json/misc/07c75.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<dynamic>.from(json["other_names"].map((x) => x)),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
Test case

test/inputs/json/misc/0a91a.json

1 generated file · +7 −7
Mdartdefault / TopLevel.dart+7 −7
@@ -297,7 +297,7 @@ class PullRequest {
297297
298298 factory PullRequest.fromJson(Map<String, dynamic> json) => PullRequest(
299299 additions: json["additions"],
300- assignee: json["assignee"],
300+ assignee: (json.containsKey("assignee") ? json["assignee"] : throw FormatException('Missing required property')),
301301 assignees: List<dynamic>.from(json["assignees"].map((x) => x)),
302302 base: Base.fromJson(json["base"]),
303303 body: json["body"],
@@ -318,15 +318,15 @@ class PullRequest {
318318 locked: json["locked"],
319319 maintainerCanModify: json["maintainer_can_modify"],
320320 mergeCommitSha: json["merge_commit_sha"],
321- mergeable: json["mergeable"],
321+ mergeable: (json.containsKey("mergeable") ? json["mergeable"] : throw FormatException('Missing required property')),
322322 mergeableState: json["mergeable_state"],
323323 merged: json["merged"],
324324 mergedAt: DateTime.parse(json["merged_at"]),
325325 mergedBy: MergedBy.fromJson(json["merged_by"]),
326- milestone: json["milestone"],
326+ milestone: (json.containsKey("milestone") ? json["milestone"] : throw FormatException('Missing required property')),
327327 number: json["number"],
328328 patchUrl: json["patch_url"],
329- rebaseable: json["rebaseable"],
329+ rebaseable: (json.containsKey("rebaseable") ? json["rebaseable"] : throw FormatException('Missing required property')),
330330 requestedReviewers: List<dynamic>.from(json["requested_reviewers"].map((x) => x)),
331331 reviewCommentUrl: json["review_comment_url"],
332332 reviewComments: json["review_comments"],
@@ -574,7 +574,7 @@ class BaseRepo {
574574 createdAt: DateTime.parse(json["created_at"]),
575575 defaultBranch: json["default_branch"],
576576 deploymentsUrl: json["deployments_url"],
577- description: json["description"],
577+ description: (json.containsKey("description") ? json["description"] : throw FormatException('Missing required property')),
578578 downloadsUrl: json["downloads_url"],
579579 eventsUrl: json["events_url"],
580580 fork: json["fork"],
@@ -591,7 +591,7 @@ class BaseRepo {
591591 hasPages: json["has_pages"],
592592 hasProjects: json["has_projects"],
593593 hasWiki: json["has_wiki"],
594- homepage: json["homepage"],
594+ homepage: (json.containsKey("homepage") ? json["homepage"] : throw FormatException('Missing required property')),
595595 hooksUrl: json["hooks_url"],
596596 htmlUrl: json["html_url"],
597597 id: json["id"],
@@ -604,7 +604,7 @@ class BaseRepo {
604604 languagesUrl: json["languages_url"],
605605 mergesUrl: json["merges_url"],
606606 milestonesUrl: json["milestones_url"],
607- mirrorUrl: json["mirror_url"],
607+ mirrorUrl: (json.containsKey("mirror_url") ? json["mirror_url"] : throw FormatException('Missing required property')),
608608 name: json["name"],
609609 notificationsUrl: json["notifications_url"],
610610 openIssues: json["open_issues"],
Test case

test/inputs/json/misc/0b91a.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -137,8 +137,8 @@ class Result {
137137 created: json["created"],
138138 date: json["date"],
139139 image: List<dynamic>.from(json["image"].map((x) => x)),
140- number: json["number"],
141- teaser: json["teaser"],
140+ number: (json.containsKey("number") ? json["number"] : throw FormatException('Missing required property')),
141+ teaser: (json.containsKey("teaser") ? json["teaser"] : throw FormatException('Missing required property')),
142142 title: json["title"],
143143 topic: List<dynamic>.from(json["topic"].map((x) => x)),
144144 url: json["url"],
Test case

test/inputs/json/misc/0e0c2.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -24,7 +24,7 @@ class TopLevel {
2424 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
2525 count: json["count"],
2626 next: json["next"],
27- previous: json["previous"],
27+ previous: (json.containsKey("previous") ? json["previous"] : throw FormatException('Missing required property')),
2828 results: List<Result>.from(json["results"].map((x) => Result.fromJson(x))),
2929 );
3030
@@ -82,7 +82,7 @@ class Result {
8282 language: resultLanguageValues.map[json["language"]]!,
8383 releaseDate: DateTime.parse(json["release_date"]),
8484 stars: json["stars"],
85- tags: json["tags"] == null ? null : List<dynamic>.from(json["tags"]!.map((x) => x)),
85+ tags: (json.containsKey("tags") ? json["tags"] : throw FormatException('Missing required property')) == null ? null : List<dynamic>.from((json.containsKey("tags") ? json["tags"] : throw FormatException('Missing required property'))!.map((x) => x)),
8686 title: json["title"],
8787 videos: List<Video>.from(json["videos"].map((x) => Video.fromJson(x))),
8888 voteScore: VoteScore.fromJson(json["vote_score"]),
Test case

test/inputs/json/misc/10be4.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<OtherName>.from(json["other_names"].map((x) => OtherName.fromJson(x))),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
4242
@@ -163,7 +163,7 @@ class OtherName {
163163
164164 factory OtherName.fromJson(Map<String, dynamic> json) => OtherName(
165165 name: json["name"],
166- note: json["note"],
166+ note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')),
167167 );
168168
169169 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/1b409.json

1 generated file · +7 −7
Mdartdefault / TopLevel.dart+7 −7
@@ -100,7 +100,7 @@ class Object {
100100 });
101101
102102 factory Object.fromJson(Map<String, dynamic> json) => Object(
103- caucus: json["caucus"],
103+ caucus: (json.containsKey("caucus") ? json["caucus"] : throw FormatException('Missing required property')),
104104 congressNumbers: List<int>.from(json["congress_numbers"].map((x) => x)),
105105 current: json["current"],
106106 description: json["description"],
@@ -108,14 +108,14 @@ class Object {
108108 enddate: DateTime.parse(json["enddate"]),
109109 extra: Extra.fromJson(json["extra"]),
110110 id: json["id"],
111- leadershipTitle: json["leadership_title"],
111+ leadershipTitle: (json.containsKey("leadership_title") ? json["leadership_title"] : throw FormatException('Missing required property')),
112112 party: partyValues.map[json["party"]]!,
113113 person: Person.fromJson(json["person"]),
114114 phone: json["phone"],
115115 roleType: roleTypeValues.map[json["role_type"]]!,
116116 roleTypeLabel: roleTypeLabelValues.map[json["role_type_label"]]!,
117- senatorClass: json["senator_class"],
118- senatorRank: json["senator_rank"],
117+ senatorClass: (json.containsKey("senator_class") ? json["senator_class"] : throw FormatException('Missing required property')),
118+ senatorRank: (json.containsKey("senator_rank") ? json["senator_rank"] : throw FormatException('Missing required property')),
119119 startdate: DateTime.parse(json["startdate"]),
120120 state: json["state"],
121121 title: titleValues.map[json["title"]]!,
@@ -246,10 +246,10 @@ class Person {
246246 namemod: namemodValues.map[json["namemod"]]!,
247247 nickname: json["nickname"],
248248 osid: json["osid"],
249- pvsid: json["pvsid"],
249+ pvsid: (json.containsKey("pvsid") ? json["pvsid"] : throw FormatException('Missing required property')),
250250 sortname: json["sortname"],
251- twitterid: json["twitterid"],
252- youtubeid: json["youtubeid"],
251+ twitterid: (json.containsKey("twitterid") ? json["twitterid"] : throw FormatException('Missing required property')),
252+ youtubeid: (json.containsKey("youtubeid") ? json["youtubeid"] : throw FormatException('Missing required property')),
253253 );
254254
255255 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/27332.json

1 generated file · +21 −21
Mdartdefault / TopLevel.dart+21 −21
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -210,14 +210,14 @@ class ChildData {
210210 });
211211
212212 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
213- approvedAtUtc: json["approved_at_utc"],
214- approvedBy: json["approved_by"],
213+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
214+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
215215 archived: json["archived"],
216216 author: json["author"],
217- authorFlairCssClass: json["author_flair_css_class"],
218- authorFlairText: json["author_flair_text"],
219- bannedAtUtc: json["banned_at_utc"],
220- bannedBy: json["banned_by"],
217+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
218+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
219+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
220+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
221221 brandSafe: json["brand_safe"],
222222 canGild: json["can_gild"],
223223 canModPost: json["can_mod_post"],
@@ -225,7 +225,7 @@ class ChildData {
225225 contestMode: json["contest_mode"],
226226 created: json["created"]?.toDouble(),
227227 createdUtc: json["created_utc"]?.toDouble(),
228- distinguished: json["distinguished"],
228+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
229229 domain: domainValues.map[json["domain"]]!,
230230 downs: json["downs"],
231231 edited: json["edited"],
@@ -235,44 +235,44 @@ class ChildData {
235235 id: json["id"],
236236 isSelf: json["is_self"],
237237 isVideo: json["is_video"],
238- likes: json["likes"],
239- linkFlairCssClass: json["link_flair_css_class"],
240- linkFlairText: json["link_flair_text"],
238+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
239+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
240+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
241241 locked: json["locked"],
242- media: json["media"] == null ? null : Media.fromJson(json["media"]),
242+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("media") ? json["media"] : throw FormatException('Missing required property'))),
243243 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
244244 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
245245 name: json["name"],
246246 numComments: json["num_comments"],
247- numReports: json["num_reports"],
247+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
248248 over18: json["over_18"],
249249 permalink: json["permalink"],
250250 postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!,
251251 preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]),
252252 quarantine: json["quarantine"],
253- removalReason: json["removal_reason"],
254- reportReasons: json["report_reasons"],
253+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
254+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
255255 saved: json["saved"],
256256 score: json["score"],
257- secureMedia: json["secure_media"] == null ? null : Media.fromJson(json["secure_media"]),
257+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property'))),
258258 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
259259 selftext: json["selftext"],
260- selftextHtml: json["selftext_html"],
260+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
261261 spoiler: json["spoiler"],
262262 stickied: json["stickied"],
263263 subreddit: subredditValues.map[json["subreddit"]]!,
264264 subredditId: subredditIdValues.map[json["subreddit_id"]]!,
265265 subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!,
266266 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
267- suggestedSort: json["suggested_sort"],
267+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
268268 thumbnail: json["thumbnail"],
269- thumbnailHeight: json["thumbnail_height"],
270- thumbnailWidth: json["thumbnail_width"],
269+ thumbnailHeight: (json.containsKey("thumbnail_height") ? json["thumbnail_height"] : throw FormatException('Missing required property')),
270+ thumbnailWidth: (json.containsKey("thumbnail_width") ? json["thumbnail_width"] : throw FormatException('Missing required property')),
271271 title: json["title"],
272272 ups: json["ups"],
273273 url: json["url"],
274274 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
275- viewCount: json["view_count"],
275+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
276276 visited: json["visited"],
277277 );
Test case

test/inputs/json/misc/29f47.json

1 generated file · +20 −20
Mdartdefault / TopLevel.dart+20 −20
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -210,14 +210,14 @@ class ChildData {
210210 });
211211
212212 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
213- approvedAtUtc: json["approved_at_utc"],
214- approvedBy: json["approved_by"],
213+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
214+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
215215 archived: json["archived"],
216216 author: json["author"],
217- authorFlairCssClass: json["author_flair_css_class"],
218- authorFlairText: json["author_flair_text"],
219- bannedAtUtc: json["banned_at_utc"],
220- bannedBy: json["banned_by"],
217+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
218+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
219+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
220+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
221221 brandSafe: json["brand_safe"],
222222 canGild: json["can_gild"],
223223 canModPost: json["can_mod_post"],
@@ -235,44 +235,44 @@ class ChildData {
235235 id: json["id"],
236236 isSelf: json["is_self"],
237237 isVideo: json["is_video"],
238- likes: json["likes"],
239- linkFlairCssClass: json["link_flair_css_class"],
240- linkFlairText: json["link_flair_text"],
238+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
239+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
240+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
241241 locked: json["locked"],
242- media: json["media"],
242+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')),
243243 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
244244 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
245245 name: json["name"],
246246 numComments: json["num_comments"],
247- numReports: json["num_reports"],
247+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
248248 over18: json["over_18"],
249249 permalink: json["permalink"],
250250 postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!,
251251 preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]),
252252 quarantine: json["quarantine"],
253- removalReason: json["removal_reason"],
254- reportReasons: json["report_reasons"],
253+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
254+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
255255 saved: json["saved"],
256256 score: json["score"],
257- secureMedia: json["secure_media"],
257+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')),
258258 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
259259 selftext: json["selftext"],
260- selftextHtml: json["selftext_html"],
260+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
261261 spoiler: json["spoiler"],
262262 stickied: json["stickied"],
263263 subreddit: subredditValues.map[json["subreddit"]]!,
264264 subredditId: subredditIdValues.map[json["subreddit_id"]]!,
265265 subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!,
266266 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
267- suggestedSort: json["suggested_sort"],
267+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
268268 thumbnail: json["thumbnail"],
269- thumbnailHeight: json["thumbnail_height"],
270- thumbnailWidth: json["thumbnail_width"],
269+ thumbnailHeight: (json.containsKey("thumbnail_height") ? json["thumbnail_height"] : throw FormatException('Missing required property')),
270+ thumbnailWidth: (json.containsKey("thumbnail_width") ? json["thumbnail_width"] : throw FormatException('Missing required property')),
271271 title: json["title"],
272272 ups: json["ups"],
273273 url: json["url"],
274274 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
275- viewCount: json["view_count"],
275+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
276276 visited: json["visited"],
277277 );
Test case

test/inputs/json/misc/2d4e2.json

1 generated file · +5 −5
Mdartdefault / TopLevel.dart+5 −5
@@ -104,15 +104,15 @@ class Object {
104104 });
105105
106106 factory Object.fromJson(Map<String, dynamic> json) => Object(
107- caucus: json["caucus"] == null ? null : partyValues.map[json["caucus"]]!,
107+ caucus: (json.containsKey("caucus") ? json["caucus"] : throw FormatException('Missing required property')) == null ? null : partyValues.map[(json.containsKey("caucus") ? json["caucus"] : throw FormatException('Missing required property'))]!,
108108 congressNumbers: List<int>.from(json["congress_numbers"].map((x) => x)),
109109 current: json["current"],
110110 description: json["description"],
111- district: json["district"],
111+ district: (json.containsKey("district") ? json["district"] : throw FormatException('Missing required property')),
112112 enddate: DateTime.parse(json["enddate"]),
113113 extra: Extra.fromJson(json["extra"]),
114114 id: json["id"],
115- leadershipTitle: json["leadership_title"],
115+ leadershipTitle: (json.containsKey("leadership_title") ? json["leadership_title"] : throw FormatException('Missing required property')),
116116 party: partyValues.map[json["party"]]!,
117117 person: Person.fromJson(json["person"]),
118118 phone: json["phone"],
@@ -258,8 +258,8 @@ class Person {
258258 osid: json["osid"],
259259 pvsid: json["pvsid"],
260260 sortname: json["sortname"],
261- twitterid: json["twitterid"],
262- youtubeid: json["youtubeid"],
261+ twitterid: (json.containsKey("twitterid") ? json["twitterid"] : throw FormatException('Missing required property')),
262+ youtubeid: (json.containsKey("youtubeid") ? json["youtubeid"] : throw FormatException('Missing required property')),
263263 );
264264
265265 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/31189.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -22,7 +22,7 @@ class TopLevel {
2222 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
2323 details: json["details"],
2424 rates: List<Rate>.from(json["rates"].map((x) => Rate.fromJson(x))),
25- version: json["version"],
25+ version: (json.containsKey("version") ? json["version"] : throw FormatException('Missing required property')),
2626 );
2727
2828 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/32431.json

1 generated file · +7 −7
Mdartdefault / TopLevel.dart+7 −7
@@ -150,19 +150,19 @@ class Properties {
150150 });
151151
152152 factory Properties.fromJson(Map<String, dynamic> json) => Properties(
153- alert: json["alert"],
154- cdi: json["cdi"],
153+ alert: (json.containsKey("alert") ? json["alert"] : throw FormatException('Missing required property')),
154+ cdi: (json.containsKey("cdi") ? json["cdi"] : throw FormatException('Missing required property')),
155155 code: json["code"],
156156 detail: json["detail"],
157- dmin: json["dmin"]?.toDouble(),
158- felt: json["felt"],
159- gap: json["gap"],
157+ dmin: (json.containsKey("dmin") ? json["dmin"] : throw FormatException('Missing required property'))?.toDouble(),
158+ felt: (json.containsKey("felt") ? json["felt"] : throw FormatException('Missing required property')),
159+ gap: (json.containsKey("gap") ? json["gap"] : throw FormatException('Missing required property')),
160160 ids: json["ids"],
161161 mag: json["mag"]?.toDouble(),
162162 magType: magTypeValues.map[json["magType"]]!,
163- mmi: json["mmi"],
163+ mmi: (json.containsKey("mmi") ? json["mmi"] : throw FormatException('Missing required property')),
164164 net: json["net"],
165- nst: json["nst"],
165+ nst: (json.containsKey("nst") ? json["nst"] : throw FormatException('Missing required property')),
166166 place: json["place"],
167167 rms: json["rms"]?.toDouble(),
168168 sig: json["sig"],
Test case

test/inputs/json/misc/32d5c.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -30,7 +30,7 @@ class TopLevel {
3030 });
3131
3232 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
33- birthDate: json["BirthDate"] == null ? null : DateTime.parse(json["BirthDate"]),
33+ birthDate: (json.containsKey("BirthDate") ? json["BirthDate"] : throw FormatException('Missing required property')) == null ? null : DateTime.parse((json.containsKey("BirthDate") ? json["BirthDate"] : throw FormatException('Missing required property'))),
3434 birthDateIsProtected: json["BirthDateIsProtected"],
3535 genderTypeId: json["GenderTypeID"],
3636 notes: json["Notes"],
Test case

test/inputs/json/misc/337ed.json

1 generated file · +20 −20
Mdartdefault / TopLevel.dart+20 −20
@@ -128,35 +128,35 @@ class Result {
128128 });
129129
130130 factory Result.fromJson(Map<String, dynamic> json) => Result(
131- costAbsolute: json["cost_absolute"],
132- costMax: json["cost_max"],
133- costMin: json["cost_min"],
131+ costAbsolute: (json.containsKey("cost_absolute") ? json["cost_absolute"] : throw FormatException('Missing required property')),
132+ costMax: (json.containsKey("cost_max") ? json["cost_max"] : throw FormatException('Missing required property')),
133+ costMin: (json.containsKey("cost_min") ? json["cost_min"] : throw FormatException('Missing required property')),
134134 createdAt: DateTime.parse(json["created_at"]),
135135 customIncomes: List<CustomIncome>.from(json["customIncomes"].map((x) => CustomIncome.fromJson(x))),
136- directRepCostsMax: json["direct_rep_costs_max"],
137- directRepCostsMin: json["direct_rep_costs_min"],
136+ directRepCostsMax: (json.containsKey("direct_rep_costs_max") ? json["direct_rep_costs_max"] : throw FormatException('Missing required property')),
137+ directRepCostsMin: (json.containsKey("direct_rep_costs_min") ? json["direct_rep_costs_min"] : throw FormatException('Missing required property')),
138138 endDate: DateTime.parse(json["end_date"]),
139139 eurSourcesGrants: json["eur_sources_grants"],
140- eurSourcesGrantsSrc: json["eur_sources_grants_src"],
140+ eurSourcesGrantsSrc: (json.containsKey("eur_sources_grants_src") ? json["eur_sources_grants_src"] : throw FormatException('Missing required property')),
141141 eurSourcesProcurement: json["eur_sources_procurement"],
142- eurSourcesProcurementSrc: json["eur_sources_procurement_src"],
142+ eurSourcesProcurementSrc: (json.containsKey("eur_sources_procurement_src") ? json["eur_sources_procurement_src"] : throw FormatException('Missing required property')),
143143 id: json["id"],
144- newOrganisation: json["new_organisation"],
145- noClients: json["no_clients"],
146- otherFinancialInformation: json["other_financial_information"],
147- otherSourcesContributions: json["other_sources_contributions"],
148- otherSourcesDonation: json["other_sources_donation"],
149- otherSourcesTotal: json["other_sources_total"],
150- publicFinancingInfranational: json["public_financing_infranational"],
151- publicFinancingNational: json["public_financing_national"],
152- publicFinancingTotal: json["public_financing_total"],
144+ newOrganisation: (json.containsKey("new_organisation") ? json["new_organisation"] : throw FormatException('Missing required property')),
145+ noClients: (json.containsKey("no_clients") ? json["no_clients"] : throw FormatException('Missing required property')),
146+ otherFinancialInformation: (json.containsKey("other_financial_information") ? json["other_financial_information"] : throw FormatException('Missing required property')),
147+ otherSourcesContributions: (json.containsKey("other_sources_contributions") ? json["other_sources_contributions"] : throw FormatException('Missing required property')),
148+ otherSourcesDonation: (json.containsKey("other_sources_donation") ? json["other_sources_donation"] : throw FormatException('Missing required property')),
149+ otherSourcesTotal: (json.containsKey("other_sources_total") ? json["other_sources_total"] : throw FormatException('Missing required property')),
150+ publicFinancingInfranational: (json.containsKey("public_financing_infranational") ? json["public_financing_infranational"] : throw FormatException('Missing required property')),
151+ publicFinancingNational: (json.containsKey("public_financing_national") ? json["public_financing_national"] : throw FormatException('Missing required property')),
152+ publicFinancingTotal: (json.containsKey("public_financing_total") ? json["public_financing_total"] : throw FormatException('Missing required property')),
153153 representative: json["representative"],
154154 startDate: DateTime.parse(json["start_date"]),
155155 status: statusValues.map[json["status"]]!,
156- totalBudget: json["total_budget"],
157- turnoverAbsolute: json["turnover_absolute"],
158- turnoverMax: json["turnover_max"],
159- turnoverMin: json["turnover_min"],
156+ totalBudget: (json.containsKey("total_budget") ? json["total_budget"] : throw FormatException('Missing required property')),
157+ turnoverAbsolute: (json.containsKey("turnover_absolute") ? json["turnover_absolute"] : throw FormatException('Missing required property')),
158+ turnoverMax: (json.containsKey("turnover_max") ? json["turnover_max"] : throw FormatException('Missing required property')),
159+ turnoverMin: (json.containsKey("turnover_min") ? json["turnover_min"] : throw FormatException('Missing required property')),
160160 type: resultTypeValues.map[json["type"]]!,
161161 updatedAt: DateTime.parse(json["updated_at"]),
162162 uri: json["uri"],
Test case

test/inputs/json/misc/34702.json

1 generated file · +3 −3
Mdartdefault / TopLevel.dart+3 −3
@@ -178,11 +178,11 @@ class FeatureProperties {
178178 factory FeatureProperties.fromJson(Map<String, dynamic> json) => FeatureProperties(
179179 division: json["division"],
180180 fax: json["fax"]?.toDouble(),
181- fireBanR: json["fire_ban_r"] == null ? null : fireBanRValues.map[json["fire_ban_r"]]!,
181+ fireBanR: (json.containsKey("fire_ban_r") ? json["fire_ban_r"] : throw FormatException('Missing required property')) == null ? null : fireBanRValues.map[(json.containsKey("fire_ban_r") ? json["fire_ban_r"] : throw FormatException('Missing required property'))]!,
182182 latitude: json["latitude"]?.toDouble(),
183183 localGovt: json["local_govt"],
184184 longitude: json["longitude"]?.toDouble(),
185- no: json["no"],
185+ no: (json.containsKey("no") ? json["no"] : throw FormatException('Missing required property')),
186186 phone: json["phone"]?.toDouble(),
187187 postcode: json["postcode"],
188188 psa: json["psa"],
@@ -190,7 +190,7 @@ class FeatureProperties {
190190 station: json["station"],
191191 street: json["street"],
192192 suburb: json["suburb"],
193- type: json["type"] == null ? null : propertiesTypeValues.map[json["type"]]!,
193+ type: (json.containsKey("type") ? json["type"] : throw FormatException('Missing required property')) == null ? null : propertiesTypeValues.map[(json.containsKey("type") ? json["type"] : throw FormatException('Missing required property'))]!,
194194 );
195195
196196 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/4d6fb.json

1 generated file · +21 −21
Mdartdefault / TopLevel.dart+21 −21
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -210,14 +210,14 @@ class ChildData {
210210 });
211211
212212 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
213- approvedAtUtc: json["approved_at_utc"],
214- approvedBy: json["approved_by"],
213+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
214+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
215215 archived: json["archived"],
216216 author: json["author"],
217- authorFlairCssClass: json["author_flair_css_class"],
218- authorFlairText: json["author_flair_text"],
219- bannedAtUtc: json["banned_at_utc"],
220- bannedBy: json["banned_by"],
217+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
218+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
219+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
220+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
221221 brandSafe: json["brand_safe"],
222222 canGild: json["can_gild"],
223223 canModPost: json["can_mod_post"],
@@ -225,7 +225,7 @@ class ChildData {
225225 contestMode: json["contest_mode"],
226226 created: json["created"]?.toDouble(),
227227 createdUtc: json["created_utc"]?.toDouble(),
228- distinguished: json["distinguished"],
228+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
229229 domain: json["domain"],
230230 downs: json["downs"],
231231 edited: json["edited"],
@@ -235,44 +235,44 @@ class ChildData {
235235 id: json["id"],
236236 isSelf: json["is_self"],
237237 isVideo: json["is_video"],
238- likes: json["likes"],
239- linkFlairCssClass: json["link_flair_css_class"],
240- linkFlairText: json["link_flair_text"],
238+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
239+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
240+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
241241 locked: json["locked"],
242- media: json["media"] == null ? null : Media.fromJson(json["media"]),
242+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("media") ? json["media"] : throw FormatException('Missing required property'))),
243243 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
244244 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
245245 name: json["name"],
246246 numComments: json["num_comments"],
247- numReports: json["num_reports"],
247+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
248248 over18: json["over_18"],
249249 permalink: json["permalink"],
250250 postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!,
251251 preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]),
252252 quarantine: json["quarantine"],
253- removalReason: json["removal_reason"],
254- reportReasons: json["report_reasons"],
253+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
254+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
255255 saved: json["saved"],
256256 score: json["score"],
257- secureMedia: json["secure_media"] == null ? null : Media.fromJson(json["secure_media"]),
257+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property'))),
258258 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
259259 selftext: json["selftext"],
260- selftextHtml: json["selftext_html"],
260+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
261261 spoiler: json["spoiler"],
262262 stickied: json["stickied"],
263263 subreddit: subredditValues.map[json["subreddit"]]!,
264264 subredditId: subredditIdValues.map[json["subreddit_id"]]!,
265265 subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!,
266266 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
267- suggestedSort: json["suggested_sort"],
267+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
268268 thumbnail: json["thumbnail"],
269- thumbnailHeight: json["thumbnail_height"],
270- thumbnailWidth: json["thumbnail_width"],
269+ thumbnailHeight: (json.containsKey("thumbnail_height") ? json["thumbnail_height"] : throw FormatException('Missing required property')),
270+ thumbnailWidth: (json.containsKey("thumbnail_width") ? json["thumbnail_width"] : throw FormatException('Missing required property')),
271271 title: json["title"],
272272 ups: json["ups"],
273273 url: json["url"],
274274 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
275- viewCount: json["view_count"],
275+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
276276 visited: json["visited"],
277277 );
Test case

test/inputs/json/misc/570ec.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<OtherName>.from(json["other_names"].map((x) => OtherName.fromJson(x))),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
4242
@@ -115,7 +115,7 @@ class OtherName {
115115
116116 factory OtherName.fromJson(Map<String, dynamic> json) => OtherName(
117117 name: json["name"],
118- note: json["note"],
118+ note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')),
119119 );
120120
121121 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/66121.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<dynamic>.from(json["other_names"].map((x) => x)),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
Test case

test/inputs/json/misc/6c155.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -138,7 +138,7 @@ class Result {
138138 date: json["date"],
139139 image: List<dynamic>.from(json["image"].map((x) => x)),
140140 location: Location.fromJson(json["location"]),
141- teaser: json["teaser"],
141+ teaser: (json.containsKey("teaser") ? json["teaser"] : throw FormatException('Missing required property')),
142142 title: json["title"],
143143 topic: List<dynamic>.from(json["topic"].map((x) => x)),
144144 url: json["url"],
@@ -218,7 +218,7 @@ class Location {
218218 phoneNumber: json["phone_number"],
219219 phoneNumberExtension: json["phone_number_extension"],
220220 postalCode: json["postal_code"],
221- subPremise: json["sub_premise"],
221+ subPremise: (json.containsKey("sub_premise") ? json["sub_premise"] : throw FormatException('Missing required property')),
222222 thoroughfare: json["thoroughfare"],
223223 );
Test case

test/inputs/json/misc/6de06.json

1 generated file · +21 −21
Mdartdefault / TopLevel.dart+21 −21
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -210,14 +210,14 @@ class ChildData {
210210 });
211211
212212 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
213- approvedAtUtc: json["approved_at_utc"],
214- approvedBy: json["approved_by"],
213+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
214+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
215215 archived: json["archived"],
216216 author: json["author"],
217- authorFlairCssClass: json["author_flair_css_class"],
218- authorFlairText: json["author_flair_text"],
219- bannedAtUtc: json["banned_at_utc"],
220- bannedBy: json["banned_by"],
217+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
218+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
219+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
220+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
221221 brandSafe: json["brand_safe"],
222222 canGild: json["can_gild"],
223223 canModPost: json["can_mod_post"],
@@ -225,7 +225,7 @@ class ChildData {
225225 contestMode: json["contest_mode"],
226226 created: json["created"]?.toDouble(),
227227 createdUtc: json["created_utc"]?.toDouble(),
228- distinguished: json["distinguished"],
228+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
229229 domain: json["domain"],
230230 downs: json["downs"],
231231 edited: json["edited"],
@@ -235,44 +235,44 @@ class ChildData {
235235 id: json["id"],
236236 isSelf: json["is_self"],
237237 isVideo: json["is_video"],
238- likes: json["likes"],
239- linkFlairCssClass: json["link_flair_css_class"],
240- linkFlairText: json["link_flair_text"],
238+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
239+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
240+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
241241 locked: json["locked"],
242- media: json["media"] == null ? null : Media.fromJson(json["media"]),
242+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("media") ? json["media"] : throw FormatException('Missing required property'))),
243243 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
244244 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
245245 name: json["name"],
246246 numComments: json["num_comments"],
247- numReports: json["num_reports"],
247+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
248248 over18: json["over_18"],
249249 permalink: json["permalink"],
250250 postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!,
251251 preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]),
252252 quarantine: json["quarantine"],
253- removalReason: json["removal_reason"],
254- reportReasons: json["report_reasons"],
253+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
254+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
255255 saved: json["saved"],
256256 score: json["score"],
257- secureMedia: json["secure_media"] == null ? null : Media.fromJson(json["secure_media"]),
257+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property'))),
258258 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
259259 selftext: json["selftext"],
260- selftextHtml: json["selftext_html"],
260+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
261261 spoiler: json["spoiler"],
262262 stickied: json["stickied"],
263263 subreddit: json["subreddit"],
264264 subredditId: json["subreddit_id"],
265265 subredditNamePrefixed: json["subreddit_name_prefixed"],
266266 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
267- suggestedSort: json["suggested_sort"],
267+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
268268 thumbnail: json["thumbnail"],
269- thumbnailHeight: json["thumbnail_height"],
270- thumbnailWidth: json["thumbnail_width"],
269+ thumbnailHeight: (json.containsKey("thumbnail_height") ? json["thumbnail_height"] : throw FormatException('Missing required property')),
270+ thumbnailWidth: (json.containsKey("thumbnail_width") ? json["thumbnail_width"] : throw FormatException('Missing required property')),
271271 title: json["title"],
272272 ups: json["ups"],
273273 url: json["url"],
274274 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
275- viewCount: json["view_count"],
275+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
276276 visited: json["visited"],
277277 );
Test case

test/inputs/json/misc/734ad.json

1 generated file · +15 −15
Mdartdefault / TopLevel.dart+15 −15
@@ -180,14 +180,14 @@ class Result {
180180 });
181181
182182 factory Result.fromJson(Map<String, dynamic> json) => Result(
183- acronym: json["acronym"],
183+ acronym: (json.containsKey("acronym") ? json["acronym"] : throw FormatException('Missing required property')),
184184 activityConsultCommittees: json["activity_consult_committees"],
185185 activityEuLegislative: json["activity_eu_legislative"],
186186 activityExpertGroups: json["activity_expert_groups"],
187187 activityHighLevelGroups: json["activity_high_level_groups"],
188188 activityIndustryForums: json["activity_industry_forums"],
189189 activityInterGroups: json["activity_inter_groups"],
190- activityOther: json["activity_other"],
190+ activityOther: (json.containsKey("activity_other") ? json["activity_other"] : throw FormatException('Missing required property')),
191191 activityRelevantComm: json["activity_relevant_comm"],
192192 beOfficeCountry: json["be_office_country"],
193193 beOfficeLat: json["be_office_lat"]?.toDouble(),
@@ -204,11 +204,11 @@ class Result {
204204 goals: json["goals"],
205205 head: json["head"],
206206 headOfficeCountry: json["head_office_country"],
207- headOfficeLat: json["head_office_lat"]?.toDouble(),
208- headOfficeLon: json["head_office_lon"]?.toDouble(),
207+ headOfficeLat: (json.containsKey("head_office_lat") ? json["head_office_lat"] : throw FormatException('Missing required property'))?.toDouble(),
208+ headOfficeLon: (json.containsKey("head_office_lon") ? json["head_office_lon"] : throw FormatException('Missing required property'))?.toDouble(),
209209 headOfficePhone: json["head_office_phone"],
210- headOfficePostCode: json["head_office_post_code"],
211- headOfficePostbox: json["head_office_postbox"],
210+ headOfficePostCode: (json.containsKey("head_office_post_code") ? json["head_office_post_code"] : throw FormatException('Missing required property')),
211+ headOfficePostbox: (json.containsKey("head_office_postbox") ? json["head_office_postbox"] : throw FormatException('Missing required property')),
212212 headOfficeStreet: json["head_office_street"],
213213 headOfficeTown: json["head_office_town"],
214214 id: json["id"],
@@ -220,16 +220,16 @@ class Result {
220220 mainCategory: json["main_category"],
221221 mainCategoryTitle: json["main_category_title"],
222222 members: json["members"],
223- members100: json["members_100"],
224- members25: json["members_25"],
225- members50: json["members_50"],
226- members75: json["members_75"],
223+ members100: (json.containsKey("members_100") ? json["members_100"] : throw FormatException('Missing required property')),
224+ members25: (json.containsKey("members_25") ? json["members_25"] : throw FormatException('Missing required property')),
225+ members50: (json.containsKey("members_50") ? json["members_50"] : throw FormatException('Missing required property')),
226+ members75: (json.containsKey("members_75") ? json["members_75"] : throw FormatException('Missing required property')),
227227 membersFte: json["members_fte"]?.toDouble(),
228228 name: json["name"],
229- nativeName: json["native_name"],
230- networking: json["networking"],
231- numberOfNaturalPersons: json["number_of_natural_persons"],
232- otherCodeOfConduct: json["other_code_of_conduct"],
229+ nativeName: (json.containsKey("native_name") ? json["native_name"] : throw FormatException('Missing required property')),
230+ networking: (json.containsKey("networking") ? json["networking"] : throw FormatException('Missing required property')),
231+ numberOfNaturalPersons: (json.containsKey("number_of_natural_persons") ? json["number_of_natural_persons"] : throw FormatException('Missing required property')),
232+ otherCodeOfConduct: (json.containsKey("other_code_of_conduct") ? json["other_code_of_conduct"] : throw FormatException('Missing required property')),
233233 registrationDate: DateTime.parse(json["registration_date"]),
234234 status: statusValues.map[json["status"]]!,
235235 structureMembers: json["structure_members"],
@@ -237,7 +237,7 @@ class Result {
237237 subCategoryTitle: json["sub_category_title"],
238238 updatedAt: DateTime.parse(json["updated_at"]),
239239 uri: json["uri"],
240- webSiteUrl: json["web_site_url"],
240+ webSiteUrl: (json.containsKey("web_site_url") ? json["web_site_url"] : throw FormatException('Missing required property')),
241241 );
242242
243243 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/7eb30.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -24,7 +24,7 @@ class TopLevel {
2424 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
2525 count: json["count"],
2626 next: json["next"],
27- previous: json["previous"],
27+ previous: (json.containsKey("previous") ? json["previous"] : throw FormatException('Missing required property')),
2828 results: List<Result>.from(json["results"].map((x) => Result.fromJson(x))),
2929 );
Test case

test/inputs/json/misc/7f568.json

1 generated file · +3 −3
Mdartdefault / TopLevel.dart+3 −3
@@ -50,7 +50,7 @@ class TopLevel {
5050 commentsUrl: json["comments_url"],
5151 commitsUrl: json["commits_url"],
5252 createdAt: DateTime.parse(json["created_at"]),
53- description: json["description"],
53+ description: (json.containsKey("description") ? json["description"] : throw FormatException('Missing required property')),
5454 files: Map.from(json["files"]).map((k, v) => MapEntry<String, FileValue>(k, FileValue.fromJson(v))),
5555 forksUrl: json["forks_url"],
5656 gitPullUrl: json["git_pull_url"],
@@ -61,7 +61,7 @@ class TopLevel {
6161 truncated: json["truncated"],
6262 updatedAt: DateTime.parse(json["updated_at"]),
6363 url: json["url"],
64- user: json["user"],
64+ user: (json.containsKey("user") ? json["user"] : throw FormatException('Missing required property')),
6565 );
6666
6767 Map<String, dynamic> toJson() => {
@@ -101,7 +101,7 @@ class FileValue {
101101
102102 factory FileValue.fromJson(Map<String, dynamic> json) => FileValue(
103103 filename: json["filename"],
104- language: json["language"] == null ? null : languageValues.map[json["language"]]!,
104+ language: (json.containsKey("language") ? json["language"] : throw FormatException('Missing required property')) == null ? null : languageValues.map[(json.containsKey("language") ? json["language"] : throw FormatException('Missing required property'))]!,
105105 rawUrl: json["raw_url"],
106106 size: json["size"],
107107 type: typeValues.map[json["type"]]!,
Test case

test/inputs/json/misc/80aff.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -82,7 +82,7 @@ class Result {
8282 id: json["id"],
8383 items: json["items"],
8484 name: json["name"],
85- parent: json["parent"],
85+ parent: (json.containsKey("parent") ? json["parent"] : throw FormatException('Missing required property')),
8686 updatedAt: DateTime.parse(json["updated_at"]),
8787 uri: json["uri"],
8888 );
Test case

test/inputs/json/misc/8592b.json

1 generated file · +18 −18
Mdartdefault / TopLevel.dart+18 −18
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -210,14 +210,14 @@ class ChildData {
210210 });
211211
212212 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
213- approvedAtUtc: json["approved_at_utc"],
214- approvedBy: json["approved_by"],
213+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
214+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
215215 archived: json["archived"],
216216 author: json["author"],
217- authorFlairCssClass: json["author_flair_css_class"],
218- authorFlairText: json["author_flair_text"],
219- bannedAtUtc: json["banned_at_utc"],
220- bannedBy: json["banned_by"],
217+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
218+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
219+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
220+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
221221 brandSafe: json["brand_safe"],
222222 canGild: json["can_gild"],
223223 canModPost: json["can_mod_post"],
@@ -225,7 +225,7 @@ class ChildData {
225225 contestMode: json["contest_mode"],
226226 created: json["created"]?.toDouble(),
227227 createdUtc: json["created_utc"]?.toDouble(),
228- distinguished: json["distinguished"],
228+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
229229 domain: json["domain"],
230230 downs: json["downs"],
231231 edited: json["edited"],
@@ -235,29 +235,29 @@ class ChildData {
235235 id: json["id"],
236236 isSelf: json["is_self"],
237237 isVideo: json["is_video"],
238- likes: json["likes"],
238+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
239239 linkFlairCssClass: json["link_flair_css_class"],
240240 linkFlairText: json["link_flair_text"],
241241 locked: json["locked"],
242- media: json["media"],
242+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')),
243243 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
244244 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
245245 name: json["name"],
246246 numComments: json["num_comments"],
247- numReports: json["num_reports"],
247+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
248248 over18: json["over_18"],
249249 permalink: json["permalink"],
250250 postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!,
251251 preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]),
252252 quarantine: json["quarantine"],
253- removalReason: json["removal_reason"],
254- reportReasons: json["report_reasons"],
253+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
254+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
255255 saved: json["saved"],
256256 score: json["score"],
257- secureMedia: json["secure_media"],
257+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')),
258258 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
259259 selftext: json["selftext"],
260- selftextHtml: json["selftext_html"],
260+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
261261 spoiler: json["spoiler"],
262262 stickied: json["stickied"],
263263 subreddit: subredditValues.map[json["subreddit"]]!,
@@ -266,13 +266,13 @@ class ChildData {
266266 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
267267 suggestedSort: suggestedSortValues.map[json["suggested_sort"]]!,
268268 thumbnail: json["thumbnail"],
269- thumbnailHeight: json["thumbnail_height"],
270- thumbnailWidth: json["thumbnail_width"],
269+ thumbnailHeight: (json.containsKey("thumbnail_height") ? json["thumbnail_height"] : throw FormatException('Missing required property')),
270+ thumbnailWidth: (json.containsKey("thumbnail_width") ? json["thumbnail_width"] : throw FormatException('Missing required property')),
271271 title: json["title"],
272272 ups: json["ups"],
273273 url: json["url"],
274274 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
275- viewCount: json["view_count"],
275+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
276276 visited: json["visited"],
277277 );
Test case

test/inputs/json/misc/996bd.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<dynamic>.from(json["other_names"].map((x) => x)),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
Test case

test/inputs/json/misc/9a503.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<dynamic>.from(json["other_names"].map((x) => x)),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
Test case

test/inputs/json/misc/9ac3b.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -92,9 +92,9 @@ class Result {
9292 id: json["id"],
9393 lastName: json["last_name"],
9494 name: json["name"],
95- position: json["position"],
95+ position: (json.containsKey("position") ? json["position"] : throw FormatException('Missing required property')),
9696 status: statusValues.map[json["status"]]!,
97- title: json["title"] == null ? null : titleValues.map[json["title"]]!,
97+ title: (json.containsKey("title") ? json["title"] : throw FormatException('Missing required property')) == null ? null : titleValues.map[(json.containsKey("title") ? json["title"] : throw FormatException('Missing required property'))]!,
9898 updatedAt: DateTime.parse(json["updated_at"]),
9999 uri: json["uri"],
100100 );
Test case

test/inputs/json/misc/9eed5.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<dynamic>.from(json["other_names"].map((x) => x)),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
Test case

test/inputs/json/misc/ad8be.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -36,7 +36,7 @@ class TopLevel {
3636 links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))),
3737 name: json["name"],
3838 otherNames: List<OtherName>.from(json["other_names"].map((x) => OtherName.fromJson(x))),
39- supersededBy: json["superseded_by"],
39+ supersededBy: (json.containsKey("superseded_by") ? json["superseded_by"] : throw FormatException('Missing required property')),
4040 text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))),
4141 );
4242
@@ -163,7 +163,7 @@ class OtherName {
163163
164164 factory OtherName.fromJson(Map<String, dynamic> json) => OtherName(
165165 name: json["name"],
166- note: json["note"],
166+ note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')),
167167 );
168168
169169 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/ae7f0.json

1 generated file · +19 −19
Mdartdefault / TopLevel.dart+19 −19
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -202,14 +202,14 @@ class ChildData {
202202 });
203203
204204 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
205- approvedAtUtc: json["approved_at_utc"],
206- approvedBy: json["approved_by"],
205+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
206+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
207207 archived: json["archived"],
208208 author: json["author"],
209- authorFlairCssClass: json["author_flair_css_class"],
210- authorFlairText: json["author_flair_text"],
211- bannedAtUtc: json["banned_at_utc"],
212- bannedBy: json["banned_by"],
209+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
210+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
211+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
212+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
213213 brandSafe: json["brand_safe"],
214214 canGild: json["can_gild"],
215215 canModPost: json["can_mod_post"],
@@ -217,7 +217,7 @@ class ChildData {
217217 contestMode: json["contest_mode"],
218218 created: json["created"]?.toDouble(),
219219 createdUtc: json["created_utc"]?.toDouble(),
220- distinguished: json["distinguished"],
220+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
221221 domain: domainValues.map[json["domain"]]!,
222222 downs: json["downs"],
223223 edited: json["edited"],
@@ -227,40 +227,40 @@ class ChildData {
227227 id: json["id"],
228228 isSelf: json["is_self"],
229229 isVideo: json["is_video"],
230- likes: json["likes"],
231- linkFlairCssClass: json["link_flair_css_class"],
232- linkFlairText: json["link_flair_text"],
230+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
231+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
232+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
233233 locked: json["locked"],
234- media: json["media"],
234+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')),
235235 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
236236 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
237237 name: json["name"],
238238 numComments: json["num_comments"],
239- numReports: json["num_reports"],
239+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
240240 over18: json["over_18"],
241241 permalink: json["permalink"],
242242 quarantine: json["quarantine"],
243- removalReason: json["removal_reason"],
244- reportReasons: json["report_reasons"],
243+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
244+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
245245 saved: json["saved"],
246246 score: json["score"],
247- secureMedia: json["secure_media"],
247+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')),
248248 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
249249 selftext: json["selftext"],
250- selftextHtml: json["selftext_html"],
250+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
251251 spoiler: json["spoiler"],
252252 stickied: json["stickied"],
253253 subreddit: subredditValues.map[json["subreddit"]]!,
254254 subredditId: subredditIdValues.map[json["subreddit_id"]]!,
255255 subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!,
256256 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
257- suggestedSort: json["suggested_sort"],
257+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
258258 thumbnail: json["thumbnail"],
259259 title: json["title"],
260260 ups: json["ups"],
261261 url: json["url"],
262262 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
263- viewCount: json["view_count"],
263+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
264264 visited: json["visited"],
265265 );
Test case

test/inputs/json/misc/af2d1.json

1 generated file · +21 −21
Mdartdefault / TopLevel.dart+21 −21
@@ -222,44 +222,44 @@ class FeatureProperties {
222222 });
223223
224224 factory FeatureProperties.fromJson(Map<String, dynamic> json) => FeatureProperties(
225- addImprov: json["add_improv"] == null ? null : addImprovValues.map[json["add_improv"]]!,
225+ addImprov: (json.containsKey("add_improv") ? json["add_improv"] : throw FormatException('Missing required property')) == null ? null : addImprovValues.map[(json.containsKey("add_improv") ? json["add_improv"] : throw FormatException('Missing required property'))]!,
226226 area: json["area_"]?.toDouble(),
227227 assetNumb: json["asset_numb"],
228- comments: json["comments"],
228+ comments: (json.containsKey("comments") ? json["comments"] : throw FormatException('Missing required property')),
229229 condition: json["condition"],
230- constructi: json["constructi"],
231- createdate: json["createdate"],
232- createuser: json["createuser"],
233- disposalD: json["disposal_d"],
230+ constructi: (json.containsKey("constructi") ? json["constructi"] : throw FormatException('Missing required property')),
231+ createdate: (json.containsKey("createdate") ? json["createdate"] : throw FormatException('Missing required property')),
232+ createuser: (json.containsKey("createuser") ? json["createuser"] : throw FormatException('Missing required property')),
233+ disposalD: (json.containsKey("disposal_d") ? json["disposal_d"] : throw FormatException('Missing required property')),
234234 documents: json["documents"],
235- drawingNu: json["drawing_nu"],
236- fileNumbe: json["file_numbe"],
237- folderNum: json["folder_num"],
238- fundingBa: json["funding_ba"] == null ? null : fundingBaValues.map[json["funding_ba"]]!,
235+ drawingNu: (json.containsKey("drawing_nu") ? json["drawing_nu"] : throw FormatException('Missing required property')),
236+ fileNumbe: (json.containsKey("file_numbe") ? json["file_numbe"] : throw FormatException('Missing required property')),
237+ folderNum: (json.containsKey("folder_num") ? json["folder_num"] : throw FormatException('Missing required property')),
238+ fundingBa: (json.containsKey("funding_ba") ? json["funding_ba"] : throw FormatException('Missing required property')) == null ? null : fundingBaValues.map[(json.containsKey("funding_ba") ? json["funding_ba"] : throw FormatException('Missing required property'))]!,
239239 historicC: json["historic_c"],
240240 inspection: json["inspection"],
241- inspectors: json["inspectors"],
242- lastUpdat: json["last_updat"],
243- levelAccu: json["level_accu"] == null ? null : levelAccuValues.map[json["level_accu"]]!,
241+ inspectors: (json.containsKey("inspectors") ? json["inspectors"] : throw FormatException('Missing required property')),
242+ lastUpdat: (json.containsKey("last_updat") ? json["last_updat"] : throw FormatException('Missing required property')),
243+ levelAccu: (json.containsKey("level_accu") ? json["level_accu"] : throw FormatException('Missing required property')) == null ? null : levelAccuValues.map[(json.containsKey("level_accu") ? json["level_accu"] : throw FormatException('Missing required property'))]!,
244244 material: materialValues.map[json["material"]]!,
245245 miPrinx: json["mi_prinx"],
246246 miSymbolo: miSymboloValues.map[json["mi_symbolo"]]!,
247247 numberLan: json["number_lan"],
248- owner: json["owner"],
249- positional: json["positional"] == null ? null : levelAccuValues.map[json["positional"]]!,
250- projectNu: json["project_nu"],
248+ owner: (json.containsKey("owner") ? json["owner"] : throw FormatException('Missing required property')),
249+ positional: (json.containsKey("positional") ? json["positional"] : throw FormatException('Missing required property')) == null ? null : levelAccuValues.map[(json.containsKey("positional") ? json["positional"] : throw FormatException('Missing required property'))]!,
250+ projectNu: (json.containsKey("project_nu") ? json["project_nu"] : throw FormatException('Missing required property')),
251251 recId: json["rec_id"],
252- recordCre: json["record_cre"],
252+ recordCre: (json.containsKey("record_cre") ? json["record_cre"] : throw FormatException('Missing required property')),
253253 shapeArea: json["shape_area"]?.toDouble(),
254254 shapeLeng: json["shape_leng"]?.toDouble(),
255255 status: statusValues.map[json["status"]]!,
256- surveyNum: json["survey_num"],
256+ surveyNum: (json.containsKey("survey_num") ? json["survey_num"] : throw FormatException('Missing required property')),
257257 toeRl: json["toe_rl"]?.toDouble(),
258258 topRl: json["top_rl"]?.toDouble(),
259- type: json["type"] == null ? null : propertiesTypeValues.map[json["type"]]!,
259+ type: (json.containsKey("type") ? json["type"] : throw FormatException('Missing required property')) == null ? null : propertiesTypeValues.map[(json.containsKey("type") ? json["type"] : throw FormatException('Missing required property'))]!,
260260 updateDat: json["update_dat"],
261- updatedate: json["updatedate"],
262- updateuser: json["updateuser"],
261+ updatedate: (json.containsKey("updatedate") ? json["updatedate"] : throw FormatException('Missing required property')),
262+ updateuser: (json.containsKey("updateuser") ? json["updateuser"] : throw FormatException('Missing required property')),
263263 );
264264
265265 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/misc/be234.json

1 generated file · +19 −19
Mdartdefault / TopLevel.dart+19 −19
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -210,14 +210,14 @@ class ChildData {
210210 });
211211
212212 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
213- approvedAtUtc: json["approved_at_utc"],
214- approvedBy: json["approved_by"],
213+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
214+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
215215 archived: json["archived"],
216216 author: json["author"],
217- authorFlairCssClass: json["author_flair_css_class"],
218- authorFlairText: json["author_flair_text"],
219- bannedAtUtc: json["banned_at_utc"],
220- bannedBy: json["banned_by"],
217+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
218+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
219+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
220+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
221221 brandSafe: json["brand_safe"],
222222 canGild: json["can_gild"],
223223 canModPost: json["can_mod_post"],
@@ -225,7 +225,7 @@ class ChildData {
225225 contestMode: json["contest_mode"],
226226 created: json["created"]?.toDouble(),
227227 createdUtc: json["created_utc"]?.toDouble(),
228- distinguished: json["distinguished"],
228+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
229229 domain: domainValues.map[json["domain"]]!,
230230 downs: json["downs"],
231231 edited: json["edited"],
@@ -235,36 +235,36 @@ class ChildData {
235235 id: json["id"],
236236 isSelf: json["is_self"],
237237 isVideo: json["is_video"],
238- likes: json["likes"],
239- linkFlairCssClass: json["link_flair_css_class"],
240- linkFlairText: json["link_flair_text"],
238+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
239+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
240+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
241241 locked: json["locked"],
242- media: json["media"] == null ? null : Media.fromJson(json["media"]),
242+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("media") ? json["media"] : throw FormatException('Missing required property'))),
243243 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
244244 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
245245 name: json["name"],
246246 numComments: json["num_comments"],
247- numReports: json["num_reports"],
247+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
248248 over18: json["over_18"],
249249 permalink: json["permalink"],
250250 postHint: postHintValues.map[json["post_hint"]]!,
251251 preview: Preview.fromJson(json["preview"]),
252252 quarantine: json["quarantine"],
253- removalReason: json["removal_reason"],
254- reportReasons: json["report_reasons"],
253+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
254+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
255255 saved: json["saved"],
256256 score: json["score"],
257- secureMedia: json["secure_media"] == null ? null : Media.fromJson(json["secure_media"]),
257+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')) == null ? null : Media.fromJson((json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property'))),
258258 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
259259 selftext: json["selftext"],
260- selftextHtml: json["selftext_html"],
260+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
261261 spoiler: json["spoiler"],
262262 stickied: json["stickied"],
263263 subreddit: subredditValues.map[json["subreddit"]]!,
264264 subredditId: subredditIdValues.map[json["subreddit_id"]]!,
265265 subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!,
266266 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
267- suggestedSort: json["suggested_sort"],
267+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
268268 thumbnail: json["thumbnail"],
269269 thumbnailHeight: json["thumbnail_height"],
270270 thumbnailWidth: json["thumbnail_width"],
@@ -272,7 +272,7 @@ class ChildData {
272272 ups: json["ups"],
273273 url: json["url"],
274274 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
275- viewCount: json["view_count"],
275+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
276276 visited: json["visited"],
277277 );
Test case

test/inputs/json/misc/d23d5.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -76,7 +76,7 @@ class Result {
7676 });
7777
7878 factory Result.fromJson(Map<String, dynamic> json) => Result(
79- acronym: json["acronym"],
79+ acronym: (json.containsKey("acronym") ? json["acronym"] : throw FormatException('Missing required property')),
8080 createdAt: DateTime.parse(json["created_at"]),
8181 id: json["id"],
8282 name: json["name"],
Test case

test/inputs/json/misc/dec3a.json

1 generated file · +5 −5
Mdartdefault / TopLevel.dart+5 −5
@@ -151,17 +151,17 @@ class Result {
151151 body: json["body"],
152152 changed: json["changed"],
153153 created: json["created"],
154- deadline: json["deadline"],
155- hiringOffice: json["hiring_office"],
154+ deadline: (json.containsKey("deadline") ? json["deadline"] : throw FormatException('Missing required property')),
155+ hiringOffice: (json.containsKey("hiring_office") ? json["hiring_office"] : throw FormatException('Missing required property')),
156156 hiringOrg: HiringOrg.fromJson(json["hiring_org"]),
157- jobId: json["job_id"],
157+ jobId: (json.containsKey("job_id") ? json["job_id"] : throw FormatException('Missing required property')),
158158 language: json["language"],
159159 location: Location.fromJson(json["location"]),
160160 numPositions: json["num_positions"],
161161 position: json["position"],
162162 practiceArea: json["practice_area"],
163163 qualifications: json["qualifications"],
164- relocationExpenses: json["relocation_expenses"],
164+ relocationExpenses: (json.containsKey("relocation_expenses") ? json["relocation_expenses"] : throw FormatException('Missing required property')),
165165 salary: json["salary"],
166166 title: json["title"],
167167 travel: json["travel"],
@@ -250,7 +250,7 @@ class Location {
250250 phoneNumber: json["phone_number"],
251251 phoneNumberExtension: json["phone_number_extension"],
252252 postalCode: json["postal_code"],
253- subPremise: json["sub_premise"],
253+ subPremise: (json.containsKey("sub_premise") ? json["sub_premise"] : throw FormatException('Missing required property')),
254254 thoroughfare: json["thoroughfare"],
255255 );
Test case

test/inputs/json/misc/f22f5.json

1 generated file · +19 −19
Mdartdefault / TopLevel.dart+19 −19
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -202,14 +202,14 @@ class ChildData {
202202 });
203203
204204 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
205- approvedAtUtc: json["approved_at_utc"],
206- approvedBy: json["approved_by"],
205+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
206+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
207207 archived: json["archived"],
208208 author: json["author"],
209- authorFlairCssClass: json["author_flair_css_class"],
210- authorFlairText: json["author_flair_text"],
211- bannedAtUtc: json["banned_at_utc"],
212- bannedBy: json["banned_by"],
209+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
210+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
211+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
212+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
213213 brandSafe: json["brand_safe"],
214214 canGild: json["can_gild"],
215215 canModPost: json["can_mod_post"],
@@ -217,7 +217,7 @@ class ChildData {
217217 contestMode: json["contest_mode"],
218218 created: json["created"]?.toDouble(),
219219 createdUtc: json["created_utc"]?.toDouble(),
220- distinguished: json["distinguished"],
220+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
221221 domain: json["domain"],
222222 downs: json["downs"],
223223 edited: json["edited"],
@@ -227,40 +227,40 @@ class ChildData {
227227 id: json["id"],
228228 isSelf: json["is_self"],
229229 isVideo: json["is_video"],
230- likes: json["likes"],
231- linkFlairCssClass: json["link_flair_css_class"],
232- linkFlairText: json["link_flair_text"],
230+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
231+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
232+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
233233 locked: json["locked"],
234- media: json["media"],
234+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')),
235235 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
236236 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
237237 name: json["name"],
238238 numComments: json["num_comments"],
239- numReports: json["num_reports"],
239+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
240240 over18: json["over_18"],
241241 permalink: json["permalink"],
242242 quarantine: json["quarantine"],
243- removalReason: json["removal_reason"],
244- reportReasons: json["report_reasons"],
243+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
244+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
245245 saved: json["saved"],
246246 score: json["score"],
247- secureMedia: json["secure_media"],
247+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')),
248248 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
249249 selftext: json["selftext"],
250- selftextHtml: json["selftext_html"],
250+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
251251 spoiler: json["spoiler"],
252252 stickied: json["stickied"],
253253 subreddit: subredditValues.map[json["subreddit"]]!,
254254 subredditId: subredditIdValues.map[json["subreddit_id"]]!,
255255 subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!,
256256 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
257- suggestedSort: json["suggested_sort"],
257+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
258258 thumbnail: json["thumbnail"],
259259 title: json["title"],
260260 ups: json["ups"],
261261 url: json["url"],
262262 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
263- viewCount: json["view_count"],
263+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
264264 visited: json["visited"],
265265 );
Test case

test/inputs/json/priority/bug2590.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -36,8 +36,8 @@ class Invoice {
3636 });
3737
3838 factory Invoice.fromJson(Map<String, dynamic> json) => Invoice(
39- createdAt: json["createdAt"] == null ? null : DateTime.parse(json["createdAt"]),
40- dueDate: json["dueDate"] == null ? null : DateTime.parse(json["dueDate"]),
39+ createdAt: (json.containsKey("createdAt") ? json["createdAt"] : throw FormatException('Missing required property')) == null ? null : DateTime.parse((json.containsKey("createdAt") ? json["createdAt"] : throw FormatException('Missing required property'))),
40+ dueDate: (json.containsKey("dueDate") ? json["dueDate"] : throw FormatException('Missing required property')) == null ? null : DateTime.parse((json.containsKey("dueDate") ? json["dueDate"] : throw FormatException('Missing required property'))),
4141 name: json["name"],
4242 );
Test case

test/inputs/json/priority/combinations1.json

2 generated files · +324 −324
Mdartdefault / TopLevel.dart+162 −162
@@ -238,26 +238,26 @@ class CerographClass {
238238 });
239239
240240 factory CerographClass.fromJson(Map<String, dynamic> json) => CerographClass(
241- apotropaion: json["apotropaion"],
242- casuary: json["casuary"],
243- creaker: json["creaker"],
244- disqualification: json["disqualification"],
245- imperatorious: json["imperatorious"],
246- impermeabilize: json["impermeabilize"],
247- metastoma: json["metastoma"],
248- noctidiurnal: json["noctidiurnal"],
249- nonreserve: json["nonreserve"],
250- ophthalmotonometry: json["ophthalmotonometry"],
251- pailful: json["pailful"],
252- pigfish: json["pigfish"],
253- pongee: json["pongee"],
254- prosodical: json["prosodical"],
255- scrofuloderm: json["scrofuloderm"],
256- storekeeping: json["storekeeping"],
257- therologist: json["therologist"],
258- tolowa: json["Tolowa"],
259- tradeful: json["tradeful"],
260- unriveting: json["unriveting"],
241+ apotropaion: (json.containsKey("apotropaion") ? json["apotropaion"] : throw FormatException('Missing required property')),
242+ casuary: (json.containsKey("casuary") ? json["casuary"] : throw FormatException('Missing required property')),
243+ creaker: (json.containsKey("creaker") ? json["creaker"] : throw FormatException('Missing required property')),
244+ disqualification: (json.containsKey("disqualification") ? json["disqualification"] : throw FormatException('Missing required property')),
245+ imperatorious: (json.containsKey("imperatorious") ? json["imperatorious"] : throw FormatException('Missing required property')),
246+ impermeabilize: (json.containsKey("impermeabilize") ? json["impermeabilize"] : throw FormatException('Missing required property')),
247+ metastoma: (json.containsKey("metastoma") ? json["metastoma"] : throw FormatException('Missing required property')),
248+ noctidiurnal: (json.containsKey("noctidiurnal") ? json["noctidiurnal"] : throw FormatException('Missing required property')),
249+ nonreserve: (json.containsKey("nonreserve") ? json["nonreserve"] : throw FormatException('Missing required property')),
250+ ophthalmotonometry: (json.containsKey("ophthalmotonometry") ? json["ophthalmotonometry"] : throw FormatException('Missing required property')),
251+ pailful: (json.containsKey("pailful") ? json["pailful"] : throw FormatException('Missing required property')),
252+ pigfish: (json.containsKey("pigfish") ? json["pigfish"] : throw FormatException('Missing required property')),
253+ pongee: (json.containsKey("pongee") ? json["pongee"] : throw FormatException('Missing required property')),
254+ prosodical: (json.containsKey("prosodical") ? json["prosodical"] : throw FormatException('Missing required property')),
255+ scrofuloderm: (json.containsKey("scrofuloderm") ? json["scrofuloderm"] : throw FormatException('Missing required property')),
256+ storekeeping: (json.containsKey("storekeeping") ? json["storekeeping"] : throw FormatException('Missing required property')),
257+ therologist: (json.containsKey("therologist") ? json["therologist"] : throw FormatException('Missing required property')),
258+ tolowa: (json.containsKey("Tolowa") ? json["Tolowa"] : throw FormatException('Missing required property')),
259+ tradeful: (json.containsKey("tradeful") ? json["tradeful"] : throw FormatException('Missing required property')),
260+ unriveting: (json.containsKey("unriveting") ? json["unriveting"] : throw FormatException('Missing required property')),
261261 );
262262
263263 Map<String, dynamic> toJson() => {
@@ -416,7 +416,7 @@ class CimeliaClass {
416416 chirotherium: json["Chirotherium"],
417417 disdiapason: json["disdiapason"],
418418 homocerc: json["homocerc"],
419- nonbookish: json["nonbookish"],
419+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
420420 );
421421
422422 Map<String, dynamic> toJson() => {
@@ -586,26 +586,26 @@ class CredulityClass {
586586 });
587587
588588 factory CredulityClass.fromJson(Map<String, dynamic> json) => CredulityClass(
589- ammonolytic: json["ammonolytic"],
590- bushmaster: json["bushmaster"],
591- considering: json["considering"],
592- consuetudinary: json["consuetudinary"],
593- embarras: json["embarras"],
594- fineness: json["fineness"],
595- flaithship: json["flaithship"],
596- flavia: json["Flavia"],
597- gruffly: json["gruffly"],
598- hedychium: json["Hedychium"],
599- leadwort: json["leadwort"],
600- overseriously: json["overseriously"],
601- parabola: json["parabola"],
602- pectinatodenticulate: json["pectinatodenticulate"],
603- popean: json["Popean"],
604- pornocrat: json["pornocrat"],
605- quadrisect: json["quadrisect"],
606- seriality: json["seriality"],
607- vamphorn: json["vamphorn"],
608- wharp: json["wharp"],
589+ ammonolytic: (json.containsKey("ammonolytic") ? json["ammonolytic"] : throw FormatException('Missing required property')),
590+ bushmaster: (json.containsKey("bushmaster") ? json["bushmaster"] : throw FormatException('Missing required property')),
591+ considering: (json.containsKey("considering") ? json["considering"] : throw FormatException('Missing required property')),
592+ consuetudinary: (json.containsKey("consuetudinary") ? json["consuetudinary"] : throw FormatException('Missing required property')),
593+ embarras: (json.containsKey("embarras") ? json["embarras"] : throw FormatException('Missing required property')),
594+ fineness: (json.containsKey("fineness") ? json["fineness"] : throw FormatException('Missing required property')),
595+ flaithship: (json.containsKey("flaithship") ? json["flaithship"] : throw FormatException('Missing required property')),
596+ flavia: (json.containsKey("Flavia") ? json["Flavia"] : throw FormatException('Missing required property')),
597+ gruffly: (json.containsKey("gruffly") ? json["gruffly"] : throw FormatException('Missing required property')),
598+ hedychium: (json.containsKey("Hedychium") ? json["Hedychium"] : throw FormatException('Missing required property')),
599+ leadwort: (json.containsKey("leadwort") ? json["leadwort"] : throw FormatException('Missing required property')),
600+ overseriously: (json.containsKey("overseriously") ? json["overseriously"] : throw FormatException('Missing required property')),
601+ parabola: (json.containsKey("parabola") ? json["parabola"] : throw FormatException('Missing required property')),
602+ pectinatodenticulate: (json.containsKey("pectinatodenticulate") ? json["pectinatodenticulate"] : throw FormatException('Missing required property')),
603+ popean: (json.containsKey("Popean") ? json["Popean"] : throw FormatException('Missing required property')),
604+ pornocrat: (json.containsKey("pornocrat") ? json["pornocrat"] : throw FormatException('Missing required property')),
605+ quadrisect: (json.containsKey("quadrisect") ? json["quadrisect"] : throw FormatException('Missing required property')),
606+ seriality: (json.containsKey("seriality") ? json["seriality"] : throw FormatException('Missing required property')),
607+ vamphorn: (json.containsKey("vamphorn") ? json["vamphorn"] : throw FormatException('Missing required property')),
608+ wharp: (json.containsKey("wharp") ? json["wharp"] : throw FormatException('Missing required property')),
609609 );
610610
611611 Map<String, dynamic> toJson() => {
@@ -678,26 +678,26 @@ class DeruralizeClass {
678678 });
679679
680680 factory DeruralizeClass.fromJson(Map<String, dynamic> json) => DeruralizeClass(
681- bockerel: json["bockerel"],
682- boulder: json["boulder"],
683- churrus: json["churrus"],
684- counterdigged: json["counterdigged"],
685- dialogite: json["dialogite"],
686- digenic: json["digenic"],
687- dunbird: json["dunbird"],
688- ergatogyne: json["ergatogyne"],
689- fiendful: json["fiendful"],
690- jackrod: json["jackrod"],
691- jehovistic: json["Jehovistic"],
692- paninean: json["Paninean"],
693- panther: json["panther"],
694- placentigerous: json["placentigerous"],
695- romney: json["Romney"],
696- sparm: json["sparm"],
697- tocsin: json["tocsin"],
698- unnicked: json["unnicked"],
699- unstavable: json["unstavable"],
700- windfirm: json["windfirm"],
681+ bockerel: (json.containsKey("bockerel") ? json["bockerel"] : throw FormatException('Missing required property')),
682+ boulder: (json.containsKey("boulder") ? json["boulder"] : throw FormatException('Missing required property')),
683+ churrus: (json.containsKey("churrus") ? json["churrus"] : throw FormatException('Missing required property')),
684+ counterdigged: (json.containsKey("counterdigged") ? json["counterdigged"] : throw FormatException('Missing required property')),
685+ dialogite: (json.containsKey("dialogite") ? json["dialogite"] : throw FormatException('Missing required property')),
686+ digenic: (json.containsKey("digenic") ? json["digenic"] : throw FormatException('Missing required property')),
687+ dunbird: (json.containsKey("dunbird") ? json["dunbird"] : throw FormatException('Missing required property')),
688+ ergatogyne: (json.containsKey("ergatogyne") ? json["ergatogyne"] : throw FormatException('Missing required property')),
689+ fiendful: (json.containsKey("fiendful") ? json["fiendful"] : throw FormatException('Missing required property')),
690+ jackrod: (json.containsKey("jackrod") ? json["jackrod"] : throw FormatException('Missing required property')),
691+ jehovistic: (json.containsKey("Jehovistic") ? json["Jehovistic"] : throw FormatException('Missing required property')),
692+ paninean: (json.containsKey("Paninean") ? json["Paninean"] : throw FormatException('Missing required property')),
693+ panther: (json.containsKey("panther") ? json["panther"] : throw FormatException('Missing required property')),
694+ placentigerous: (json.containsKey("placentigerous") ? json["placentigerous"] : throw FormatException('Missing required property')),
695+ romney: (json.containsKey("Romney") ? json["Romney"] : throw FormatException('Missing required property')),
696+ sparm: (json.containsKey("sparm") ? json["sparm"] : throw FormatException('Missing required property')),
697+ tocsin: (json.containsKey("tocsin") ? json["tocsin"] : throw FormatException('Missing required property')),
698+ unnicked: (json.containsKey("unnicked") ? json["unnicked"] : throw FormatException('Missing required property')),
699+ unstavable: (json.containsKey("unstavable") ? json["unstavable"] : throw FormatException('Missing required property')),
700+ windfirm: (json.containsKey("windfirm") ? json["windfirm"] : throw FormatException('Missing required property')),
701701 );
702702
703703 Map<String, dynamic> toJson() => {
@@ -770,26 +770,26 @@ class DiaereseClass {
770770 });
771771
772772 factory DiaereseClass.fromJson(Map<String, dynamic> json) => DiaereseClass(
773- amoreuxia: json["Amoreuxia"],
774- ani: json["ani"],
775- bernicle: json["bernicle"],
776- blackwasher: json["blackwasher"],
777- blowhard: json["blowhard"],
778- broma: json["broma"],
779- closecross: json["closecross"],
780- congregationalism: json["congregationalism"],
781- grayly: json["grayly"],
782- historically: json["historically"],
783- hoast: json["hoast"],
784- irretentive: json["irretentive"],
785- parcener: json["parcener"],
786- pedder: json["pedder"],
787- pseudoanatomic: json["pseudoanatomic"],
788- rhizocarpian: json["rhizocarpian"],
789- samel: json["samel"],
790- silker: json["silker"],
791- subdentated: json["subdentated"],
792- subobscure: json["subobscure"],
773+ amoreuxia: (json.containsKey("Amoreuxia") ? json["Amoreuxia"] : throw FormatException('Missing required property')),
774+ ani: (json.containsKey("ani") ? json["ani"] : throw FormatException('Missing required property')),
775+ bernicle: (json.containsKey("bernicle") ? json["bernicle"] : throw FormatException('Missing required property')),
776+ blackwasher: (json.containsKey("blackwasher") ? json["blackwasher"] : throw FormatException('Missing required property')),
777+ blowhard: (json.containsKey("blowhard") ? json["blowhard"] : throw FormatException('Missing required property')),
778+ broma: (json.containsKey("broma") ? json["broma"] : throw FormatException('Missing required property')),
779+ closecross: (json.containsKey("closecross") ? json["closecross"] : throw FormatException('Missing required property')),
780+ congregationalism: (json.containsKey("congregationalism") ? json["congregationalism"] : throw FormatException('Missing required property')),
781+ grayly: (json.containsKey("grayly") ? json["grayly"] : throw FormatException('Missing required property')),
782+ historically: (json.containsKey("historically") ? json["historically"] : throw FormatException('Missing required property')),
783+ hoast: (json.containsKey("hoast") ? json["hoast"] : throw FormatException('Missing required property')),
784+ irretentive: (json.containsKey("irretentive") ? json["irretentive"] : throw FormatException('Missing required property')),
785+ parcener: (json.containsKey("parcener") ? json["parcener"] : throw FormatException('Missing required property')),
786+ pedder: (json.containsKey("pedder") ? json["pedder"] : throw FormatException('Missing required property')),
787+ pseudoanatomic: (json.containsKey("pseudoanatomic") ? json["pseudoanatomic"] : throw FormatException('Missing required property')),
788+ rhizocarpian: (json.containsKey("rhizocarpian") ? json["rhizocarpian"] : throw FormatException('Missing required property')),
789+ samel: (json.containsKey("samel") ? json["samel"] : throw FormatException('Missing required property')),
790+ silker: (json.containsKey("silker") ? json["silker"] : throw FormatException('Missing required property')),
791+ subdentated: (json.containsKey("subdentated") ? json["subdentated"] : throw FormatException('Missing required property')),
792+ subobscure: (json.containsKey("subobscure") ? json["subobscure"] : throw FormatException('Missing required property')),
793793 );
794794
795795 Map<String, dynamic> toJson() => {
@@ -862,26 +862,26 @@ class Encrust {
862862 });
863863
864864 factory Encrust.fromJson(Map<String, dynamic> json) => Encrust(
865- comradely: json["comradely"],
866- diacanthous: json["diacanthous"],
867- feminineness: json["feminineness"],
868- gossamered: json["gossamered"],
869- hibernia: json["Hibernia"],
870- hibiscus: json["Hibiscus"],
871- lepidosauria: json["Lepidosauria"],
872- lollingly: json["lollingly"],
873- manager: json["manager"],
874- mechanic: json["mechanic"],
875- overminuteness: json["overminuteness"],
876- papelonne: json["papelonne"],
877- plebification: json["plebification"],
878- pugmiller: json["pugmiller"],
879- recoveror: json["recoveror"],
880- spermatoblastic: json["spermatoblastic"],
881- syllidae: json["Syllidae"],
882- ungyved: json["ungyved"],
883- whirlabout: json["whirlabout"],
884- woodenware: json["woodenware"],
865+ comradely: (json.containsKey("comradely") ? json["comradely"] : throw FormatException('Missing required property')),
866+ diacanthous: (json.containsKey("diacanthous") ? json["diacanthous"] : throw FormatException('Missing required property')),
867+ feminineness: (json.containsKey("feminineness") ? json["feminineness"] : throw FormatException('Missing required property')),
868+ gossamered: (json.containsKey("gossamered") ? json["gossamered"] : throw FormatException('Missing required property')),
869+ hibernia: (json.containsKey("Hibernia") ? json["Hibernia"] : throw FormatException('Missing required property')),
870+ hibiscus: (json.containsKey("Hibiscus") ? json["Hibiscus"] : throw FormatException('Missing required property')),
871+ lepidosauria: (json.containsKey("Lepidosauria") ? json["Lepidosauria"] : throw FormatException('Missing required property')),
872+ lollingly: (json.containsKey("lollingly") ? json["lollingly"] : throw FormatException('Missing required property')),
873+ manager: (json.containsKey("manager") ? json["manager"] : throw FormatException('Missing required property')),
874+ mechanic: (json.containsKey("mechanic") ? json["mechanic"] : throw FormatException('Missing required property')),
875+ overminuteness: (json.containsKey("overminuteness") ? json["overminuteness"] : throw FormatException('Missing required property')),
876+ papelonne: (json.containsKey("papelonne") ? json["papelonne"] : throw FormatException('Missing required property')),
877+ plebification: (json.containsKey("plebification") ? json["plebification"] : throw FormatException('Missing required property')),
878+ pugmiller: (json.containsKey("pugmiller") ? json["pugmiller"] : throw FormatException('Missing required property')),
879+ recoveror: (json.containsKey("recoveror") ? json["recoveror"] : throw FormatException('Missing required property')),
880+ spermatoblastic: (json.containsKey("spermatoblastic") ? json["spermatoblastic"] : throw FormatException('Missing required property')),
881+ syllidae: (json.containsKey("Syllidae") ? json["Syllidae"] : throw FormatException('Missing required property')),
882+ ungyved: (json.containsKey("ungyved") ? json["ungyved"] : throw FormatException('Missing required property')),
883+ whirlabout: (json.containsKey("whirlabout") ? json["whirlabout"] : throw FormatException('Missing required property')),
884+ woodenware: (json.containsKey("woodenware") ? json["woodenware"] : throw FormatException('Missing required property')),
885885 );
886886
887887 Map<String, dynamic> toJson() => {
@@ -954,26 +954,26 @@ class FagginglyClass {
954954 });
955955
956956 factory FagginglyClass.fromJson(Map<String, dynamic> json) => FagginglyClass(
957- abranchian: json["abranchian"],
958- aculeiform: json["aculeiform"],
959- adiaphoristic: json["adiaphoristic"],
960- adoptionism: json["adoptionism"],
961- anglic: json["Anglic"],
962- antrotomy: json["antrotomy"],
963- coerciveness: json["coerciveness"],
964- decorist: json["decorist"],
965- duckhood: json["duckhood"],
966- heteromeri: json["Heteromeri"],
967- hypochnose: json["hypochnose"],
968- lochage: json["lochage"],
969- melee: json["melee"],
970- nonconformitant: json["nonconformitant"],
971- poinsettia: json["Poinsettia"],
972- putatively: json["putatively"],
973- semivolatile: json["semivolatile"],
974- soleas: json["soleas"],
975- unfastenable: json["unfastenable"],
976- unmillinered: json["unmillinered"],
957+ abranchian: (json.containsKey("abranchian") ? json["abranchian"] : throw FormatException('Missing required property')),
958+ aculeiform: (json.containsKey("aculeiform") ? json["aculeiform"] : throw FormatException('Missing required property')),
959+ adiaphoristic: (json.containsKey("adiaphoristic") ? json["adiaphoristic"] : throw FormatException('Missing required property')),
960+ adoptionism: (json.containsKey("adoptionism") ? json["adoptionism"] : throw FormatException('Missing required property')),
961+ anglic: (json.containsKey("Anglic") ? json["Anglic"] : throw FormatException('Missing required property')),
962+ antrotomy: (json.containsKey("antrotomy") ? json["antrotomy"] : throw FormatException('Missing required property')),
963+ coerciveness: (json.containsKey("coerciveness") ? json["coerciveness"] : throw FormatException('Missing required property')),
964+ decorist: (json.containsKey("decorist") ? json["decorist"] : throw FormatException('Missing required property')),
965+ duckhood: (json.containsKey("duckhood") ? json["duckhood"] : throw FormatException('Missing required property')),
966+ heteromeri: (json.containsKey("Heteromeri") ? json["Heteromeri"] : throw FormatException('Missing required property')),
967+ hypochnose: (json.containsKey("hypochnose") ? json["hypochnose"] : throw FormatException('Missing required property')),
968+ lochage: (json.containsKey("lochage") ? json["lochage"] : throw FormatException('Missing required property')),
969+ melee: (json.containsKey("melee") ? json["melee"] : throw FormatException('Missing required property')),
970+ nonconformitant: (json.containsKey("nonconformitant") ? json["nonconformitant"] : throw FormatException('Missing required property')),
971+ poinsettia: (json.containsKey("Poinsettia") ? json["Poinsettia"] : throw FormatException('Missing required property')),
972+ putatively: (json.containsKey("putatively") ? json["putatively"] : throw FormatException('Missing required property')),
973+ semivolatile: (json.containsKey("semivolatile") ? json["semivolatile"] : throw FormatException('Missing required property')),
974+ soleas: (json.containsKey("soleas") ? json["soleas"] : throw FormatException('Missing required property')),
975+ unfastenable: (json.containsKey("unfastenable") ? json["unfastenable"] : throw FormatException('Missing required property')),
976+ unmillinered: (json.containsKey("unmillinered") ? json["unmillinered"] : throw FormatException('Missing required property')),
977977 );
978978
979979 Map<String, dynamic> toJson() => {
@@ -1046,26 +1046,26 @@ class FenkClass {
10461046 });
10471047
10481048 factory FenkClass.fromJson(Map<String, dynamic> json) => FenkClass(
1049- apoise: json["apoise"],
1050- astronomize: json["astronomize"],
1051- cockhorse: json["cockhorse"],
1052- copular: json["copular"],
1053- dagomba: json["Dagomba"],
1054- draffy: json["draffy"],
1055- foreigner: json["foreigner"],
1056- guyandot: json["Guyandot"],
1057- neurogliosis: json["neurogliosis"],
1058- osmious: json["osmious"],
1059- palpitate: json["palpitate"],
1060- rebukeable: json["rebukeable"],
1061- reinwardtia: json["Reinwardtia"],
1062- reservatory: json["reservatory"],
1063- scalt: json["scalt"],
1064- scripturalize: json["scripturalize"],
1065- tintometer: json["tintometer"],
1066- tritoness: json["Tritoness"],
1067- undergrade: json["undergrade"],
1068- undermountain: json["undermountain"],
1049+ apoise: (json.containsKey("apoise") ? json["apoise"] : throw FormatException('Missing required property')),
1050+ astronomize: (json.containsKey("astronomize") ? json["astronomize"] : throw FormatException('Missing required property')),
1051+ cockhorse: (json.containsKey("cockhorse") ? json["cockhorse"] : throw FormatException('Missing required property')),
1052+ copular: (json.containsKey("copular") ? json["copular"] : throw FormatException('Missing required property')),
1053+ dagomba: (json.containsKey("Dagomba") ? json["Dagomba"] : throw FormatException('Missing required property')),
1054+ draffy: (json.containsKey("draffy") ? json["draffy"] : throw FormatException('Missing required property')),
1055+ foreigner: (json.containsKey("foreigner") ? json["foreigner"] : throw FormatException('Missing required property')),
1056+ guyandot: (json.containsKey("Guyandot") ? json["Guyandot"] : throw FormatException('Missing required property')),
1057+ neurogliosis: (json.containsKey("neurogliosis") ? json["neurogliosis"] : throw FormatException('Missing required property')),
1058+ osmious: (json.containsKey("osmious") ? json["osmious"] : throw FormatException('Missing required property')),
1059+ palpitate: (json.containsKey("palpitate") ? json["palpitate"] : throw FormatException('Missing required property')),
1060+ rebukeable: (json.containsKey("rebukeable") ? json["rebukeable"] : throw FormatException('Missing required property')),
1061+ reinwardtia: (json.containsKey("Reinwardtia") ? json["Reinwardtia"] : throw FormatException('Missing required property')),
1062+ reservatory: (json.containsKey("reservatory") ? json["reservatory"] : throw FormatException('Missing required property')),
1063+ scalt: (json.containsKey("scalt") ? json["scalt"] : throw FormatException('Missing required property')),
1064+ scripturalize: (json.containsKey("scripturalize") ? json["scripturalize"] : throw FormatException('Missing required property')),
1065+ tintometer: (json.containsKey("tintometer") ? json["tintometer"] : throw FormatException('Missing required property')),
1066+ tritoness: (json.containsKey("Tritoness") ? json["Tritoness"] : throw FormatException('Missing required property')),
1067+ undergrade: (json.containsKey("undergrade") ? json["undergrade"] : throw FormatException('Missing required property')),
1068+ undermountain: (json.containsKey("undermountain") ? json["undermountain"] : throw FormatException('Missing required property')),
10691069 );
10701070
10711071 Map<String, dynamic> toJson() => {
@@ -1138,26 +1138,26 @@ class FlagmakingClass {
11381138 });
11391139
11401140 factory FlagmakingClass.fromJson(Map<String, dynamic> json) => FlagmakingClass(
1141- albarco: json["albarco"],
1142- bunodonta: json["Bunodonta"],
1143- hornify: json["hornify"],
1144- hydrocorisae: json["Hydrocorisae"],
1145- hypoglossus: json["hypoglossus"],
1146- inexpiably: json["inexpiably"],
1147- ingratitude: json["ingratitude"],
1148- ladyfly: json["ladyfly"],
1149- medicament: json["medicament"],
1150- monogrammatic: json["monogrammatic"],
1151- nobbut: json["nobbut"],
1152- notacanthidae: json["Notacanthidae"],
1153- polyplacophore: json["polyplacophore"],
1154- proexercise: json["proexercise"],
1155- protoplast: json["protoplast"],
1156- puzzling: json["puzzling"],
1157- splanchnoskeleton: json["splanchnoskeleton"],
1158- unloveliness: json["unloveliness"],
1159- unquarantined: json["unquarantined"],
1160- unrenounceable: json["unrenounceable"],
1141+ albarco: (json.containsKey("albarco") ? json["albarco"] : throw FormatException('Missing required property')),
1142+ bunodonta: (json.containsKey("Bunodonta") ? json["Bunodonta"] : throw FormatException('Missing required property')),
1143+ hornify: (json.containsKey("hornify") ? json["hornify"] : throw FormatException('Missing required property')),
1144+ hydrocorisae: (json.containsKey("Hydrocorisae") ? json["Hydrocorisae"] : throw FormatException('Missing required property')),
1145+ hypoglossus: (json.containsKey("hypoglossus") ? json["hypoglossus"] : throw FormatException('Missing required property')),
1146+ inexpiably: (json.containsKey("inexpiably") ? json["inexpiably"] : throw FormatException('Missing required property')),
1147+ ingratitude: (json.containsKey("ingratitude") ? json["ingratitude"] : throw FormatException('Missing required property')),
1148+ ladyfly: (json.containsKey("ladyfly") ? json["ladyfly"] : throw FormatException('Missing required property')),
1149+ medicament: (json.containsKey("medicament") ? json["medicament"] : throw FormatException('Missing required property')),
1150+ monogrammatic: (json.containsKey("monogrammatic") ? json["monogrammatic"] : throw FormatException('Missing required property')),
1151+ nobbut: (json.containsKey("nobbut") ? json["nobbut"] : throw FormatException('Missing required property')),
1152+ notacanthidae: (json.containsKey("Notacanthidae") ? json["Notacanthidae"] : throw FormatException('Missing required property')),
1153+ polyplacophore: (json.containsKey("polyplacophore") ? json["polyplacophore"] : throw FormatException('Missing required property')),
1154+ proexercise: (json.containsKey("proexercise") ? json["proexercise"] : throw FormatException('Missing required property')),
1155+ protoplast: (json.containsKey("protoplast") ? json["protoplast"] : throw FormatException('Missing required property')),
1156+ puzzling: (json.containsKey("puzzling") ? json["puzzling"] : throw FormatException('Missing required property')),
1157+ splanchnoskeleton: (json.containsKey("splanchnoskeleton") ? json["splanchnoskeleton"] : throw FormatException('Missing required property')),
1158+ unloveliness: (json.containsKey("unloveliness") ? json["unloveliness"] : throw FormatException('Missing required property')),
1159+ unquarantined: (json.containsKey("unquarantined") ? json["unquarantined"] : throw FormatException('Missing required property')),
1160+ unrenounceable: (json.containsKey("unrenounceable") ? json["unrenounceable"] : throw FormatException('Missing required property')),
11611161 );
11621162
11631163 Map<String, dynamic> toJson() => {
@@ -1316,7 +1316,7 @@ class Interacinar {
13161316 benefactorship: json["benefactorship"],
13171317 triseriatim: json["triseriatim"],
13181318 tubbing: json["tubbing"],
1319- untrimmed: json["untrimmed"],
1319+ untrimmed: (json.containsKey("untrimmed") ? json["untrimmed"] : throw FormatException('Missing required property')),
13201320 );
13211321
13221322 Map<String, dynamic> toJson() => {
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+162 −162
@@ -238,26 +238,26 @@ class CerographClass {
238238 });
239239
240240 factory CerographClass.fromJson(Map<String, dynamic> json) => CerographClass(
241- apotropaion: json["apotropaion"],
242- casuary: json["casuary"],
243- creaker: json["creaker"],
244- disqualification: json["disqualification"],
245- imperatorious: json["imperatorious"],
246- impermeabilize: json["impermeabilize"],
247- metastoma: json["metastoma"],
248- noctidiurnal: json["noctidiurnal"],
249- nonreserve: json["nonreserve"],
250- ophthalmotonometry: json["ophthalmotonometry"],
251- pailful: json["pailful"],
252- pigfish: json["pigfish"],
253- pongee: json["pongee"],
254- prosodical: json["prosodical"],
255- scrofuloderm: json["scrofuloderm"],
256- storekeeping: json["storekeeping"],
257- therologist: json["therologist"],
258- tolowa: json["Tolowa"],
259- tradeful: json["tradeful"],
260- unriveting: json["unriveting"],
241+ apotropaion: (json.containsKey("apotropaion") ? json["apotropaion"] : throw FormatException('Missing required property')),
242+ casuary: (json.containsKey("casuary") ? json["casuary"] : throw FormatException('Missing required property')),
243+ creaker: (json.containsKey("creaker") ? json["creaker"] : throw FormatException('Missing required property')),
244+ disqualification: (json.containsKey("disqualification") ? json["disqualification"] : throw FormatException('Missing required property')),
245+ imperatorious: (json.containsKey("imperatorious") ? json["imperatorious"] : throw FormatException('Missing required property')),
246+ impermeabilize: (json.containsKey("impermeabilize") ? json["impermeabilize"] : throw FormatException('Missing required property')),
247+ metastoma: (json.containsKey("metastoma") ? json["metastoma"] : throw FormatException('Missing required property')),
248+ noctidiurnal: (json.containsKey("noctidiurnal") ? json["noctidiurnal"] : throw FormatException('Missing required property')),
249+ nonreserve: (json.containsKey("nonreserve") ? json["nonreserve"] : throw FormatException('Missing required property')),
250+ ophthalmotonometry: (json.containsKey("ophthalmotonometry") ? json["ophthalmotonometry"] : throw FormatException('Missing required property')),
251+ pailful: (json.containsKey("pailful") ? json["pailful"] : throw FormatException('Missing required property')),
252+ pigfish: (json.containsKey("pigfish") ? json["pigfish"] : throw FormatException('Missing required property')),
253+ pongee: (json.containsKey("pongee") ? json["pongee"] : throw FormatException('Missing required property')),
254+ prosodical: (json.containsKey("prosodical") ? json["prosodical"] : throw FormatException('Missing required property')),
255+ scrofuloderm: (json.containsKey("scrofuloderm") ? json["scrofuloderm"] : throw FormatException('Missing required property')),
256+ storekeeping: (json.containsKey("storekeeping") ? json["storekeeping"] : throw FormatException('Missing required property')),
257+ therologist: (json.containsKey("therologist") ? json["therologist"] : throw FormatException('Missing required property')),
258+ tolowa: (json.containsKey("Tolowa") ? json["Tolowa"] : throw FormatException('Missing required property')),
259+ tradeful: (json.containsKey("tradeful") ? json["tradeful"] : throw FormatException('Missing required property')),
260+ unriveting: (json.containsKey("unriveting") ? json["unriveting"] : throw FormatException('Missing required property')),
261261 );
262262
263263 Map<String, dynamic> toJson() => {
@@ -416,7 +416,7 @@ class CimeliaClass {
416416 chirotherium: json["Chirotherium"],
417417 disdiapason: json["disdiapason"],
418418 homocerc: json["homocerc"],
419- nonbookish: json["nonbookish"],
419+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
420420 );
421421
422422 Map<String, dynamic> toJson() => {
@@ -586,26 +586,26 @@ class CredulityClass {
586586 });
587587
588588 factory CredulityClass.fromJson(Map<String, dynamic> json) => CredulityClass(
589- ammonolytic: json["ammonolytic"],
590- bushmaster: json["bushmaster"],
591- considering: json["considering"],
592- consuetudinary: json["consuetudinary"],
593- embarras: json["embarras"],
594- fineness: json["fineness"],
595- flaithship: json["flaithship"],
596- flavia: json["Flavia"],
597- gruffly: json["gruffly"],
598- hedychium: json["Hedychium"],
599- leadwort: json["leadwort"],
600- overseriously: json["overseriously"],
601- parabola: json["parabola"],
602- pectinatodenticulate: json["pectinatodenticulate"],
603- popean: json["Popean"],
604- pornocrat: json["pornocrat"],
605- quadrisect: json["quadrisect"],
606- seriality: json["seriality"],
607- vamphorn: json["vamphorn"],
608- wharp: json["wharp"],
589+ ammonolytic: (json.containsKey("ammonolytic") ? json["ammonolytic"] : throw FormatException('Missing required property')),
590+ bushmaster: (json.containsKey("bushmaster") ? json["bushmaster"] : throw FormatException('Missing required property')),
591+ considering: (json.containsKey("considering") ? json["considering"] : throw FormatException('Missing required property')),
592+ consuetudinary: (json.containsKey("consuetudinary") ? json["consuetudinary"] : throw FormatException('Missing required property')),
593+ embarras: (json.containsKey("embarras") ? json["embarras"] : throw FormatException('Missing required property')),
594+ fineness: (json.containsKey("fineness") ? json["fineness"] : throw FormatException('Missing required property')),
595+ flaithship: (json.containsKey("flaithship") ? json["flaithship"] : throw FormatException('Missing required property')),
596+ flavia: (json.containsKey("Flavia") ? json["Flavia"] : throw FormatException('Missing required property')),
597+ gruffly: (json.containsKey("gruffly") ? json["gruffly"] : throw FormatException('Missing required property')),
598+ hedychium: (json.containsKey("Hedychium") ? json["Hedychium"] : throw FormatException('Missing required property')),
599+ leadwort: (json.containsKey("leadwort") ? json["leadwort"] : throw FormatException('Missing required property')),
600+ overseriously: (json.containsKey("overseriously") ? json["overseriously"] : throw FormatException('Missing required property')),
601+ parabola: (json.containsKey("parabola") ? json["parabola"] : throw FormatException('Missing required property')),
602+ pectinatodenticulate: (json.containsKey("pectinatodenticulate") ? json["pectinatodenticulate"] : throw FormatException('Missing required property')),
603+ popean: (json.containsKey("Popean") ? json["Popean"] : throw FormatException('Missing required property')),
604+ pornocrat: (json.containsKey("pornocrat") ? json["pornocrat"] : throw FormatException('Missing required property')),
605+ quadrisect: (json.containsKey("quadrisect") ? json["quadrisect"] : throw FormatException('Missing required property')),
606+ seriality: (json.containsKey("seriality") ? json["seriality"] : throw FormatException('Missing required property')),
607+ vamphorn: (json.containsKey("vamphorn") ? json["vamphorn"] : throw FormatException('Missing required property')),
608+ wharp: (json.containsKey("wharp") ? json["wharp"] : throw FormatException('Missing required property')),
609609 );
610610
611611 Map<String, dynamic> toJson() => {
@@ -678,26 +678,26 @@ class DeruralizeClass {
678678 });
679679
680680 factory DeruralizeClass.fromJson(Map<String, dynamic> json) => DeruralizeClass(
681- bockerel: json["bockerel"],
682- boulder: json["boulder"],
683- churrus: json["churrus"],
684- counterdigged: json["counterdigged"],
685- dialogite: json["dialogite"],
686- digenic: json["digenic"],
687- dunbird: json["dunbird"],
688- ergatogyne: json["ergatogyne"],
689- fiendful: json["fiendful"],
690- jackrod: json["jackrod"],
691- jehovistic: json["Jehovistic"],
692- paninean: json["Paninean"],
693- panther: json["panther"],
694- placentigerous: json["placentigerous"],
695- romney: json["Romney"],
696- sparm: json["sparm"],
697- tocsin: json["tocsin"],
698- unnicked: json["unnicked"],
699- unstavable: json["unstavable"],
700- windfirm: json["windfirm"],
681+ bockerel: (json.containsKey("bockerel") ? json["bockerel"] : throw FormatException('Missing required property')),
682+ boulder: (json.containsKey("boulder") ? json["boulder"] : throw FormatException('Missing required property')),
683+ churrus: (json.containsKey("churrus") ? json["churrus"] : throw FormatException('Missing required property')),
684+ counterdigged: (json.containsKey("counterdigged") ? json["counterdigged"] : throw FormatException('Missing required property')),
685+ dialogite: (json.containsKey("dialogite") ? json["dialogite"] : throw FormatException('Missing required property')),
686+ digenic: (json.containsKey("digenic") ? json["digenic"] : throw FormatException('Missing required property')),
687+ dunbird: (json.containsKey("dunbird") ? json["dunbird"] : throw FormatException('Missing required property')),
688+ ergatogyne: (json.containsKey("ergatogyne") ? json["ergatogyne"] : throw FormatException('Missing required property')),
689+ fiendful: (json.containsKey("fiendful") ? json["fiendful"] : throw FormatException('Missing required property')),
690+ jackrod: (json.containsKey("jackrod") ? json["jackrod"] : throw FormatException('Missing required property')),
691+ jehovistic: (json.containsKey("Jehovistic") ? json["Jehovistic"] : throw FormatException('Missing required property')),
692+ paninean: (json.containsKey("Paninean") ? json["Paninean"] : throw FormatException('Missing required property')),
693+ panther: (json.containsKey("panther") ? json["panther"] : throw FormatException('Missing required property')),
694+ placentigerous: (json.containsKey("placentigerous") ? json["placentigerous"] : throw FormatException('Missing required property')),
695+ romney: (json.containsKey("Romney") ? json["Romney"] : throw FormatException('Missing required property')),
696+ sparm: (json.containsKey("sparm") ? json["sparm"] : throw FormatException('Missing required property')),
697+ tocsin: (json.containsKey("tocsin") ? json["tocsin"] : throw FormatException('Missing required property')),
698+ unnicked: (json.containsKey("unnicked") ? json["unnicked"] : throw FormatException('Missing required property')),
699+ unstavable: (json.containsKey("unstavable") ? json["unstavable"] : throw FormatException('Missing required property')),
700+ windfirm: (json.containsKey("windfirm") ? json["windfirm"] : throw FormatException('Missing required property')),
701701 );
702702
703703 Map<String, dynamic> toJson() => {
@@ -770,26 +770,26 @@ class DiaereseClass {
770770 });
771771
772772 factory DiaereseClass.fromJson(Map<String, dynamic> json) => DiaereseClass(
773- amoreuxia: json["Amoreuxia"],
774- ani: json["ani"],
775- bernicle: json["bernicle"],
776- blackwasher: json["blackwasher"],
777- blowhard: json["blowhard"],
778- broma: json["broma"],
779- closecross: json["closecross"],
780- congregationalism: json["congregationalism"],
781- grayly: json["grayly"],
782- historically: json["historically"],
783- hoast: json["hoast"],
784- irretentive: json["irretentive"],
785- parcener: json["parcener"],
786- pedder: json["pedder"],
787- pseudoanatomic: json["pseudoanatomic"],
788- rhizocarpian: json["rhizocarpian"],
789- samel: json["samel"],
790- silker: json["silker"],
791- subdentated: json["subdentated"],
792- subobscure: json["subobscure"],
773+ amoreuxia: (json.containsKey("Amoreuxia") ? json["Amoreuxia"] : throw FormatException('Missing required property')),
774+ ani: (json.containsKey("ani") ? json["ani"] : throw FormatException('Missing required property')),
775+ bernicle: (json.containsKey("bernicle") ? json["bernicle"] : throw FormatException('Missing required property')),
776+ blackwasher: (json.containsKey("blackwasher") ? json["blackwasher"] : throw FormatException('Missing required property')),
777+ blowhard: (json.containsKey("blowhard") ? json["blowhard"] : throw FormatException('Missing required property')),
778+ broma: (json.containsKey("broma") ? json["broma"] : throw FormatException('Missing required property')),
779+ closecross: (json.containsKey("closecross") ? json["closecross"] : throw FormatException('Missing required property')),
780+ congregationalism: (json.containsKey("congregationalism") ? json["congregationalism"] : throw FormatException('Missing required property')),
781+ grayly: (json.containsKey("grayly") ? json["grayly"] : throw FormatException('Missing required property')),
782+ historically: (json.containsKey("historically") ? json["historically"] : throw FormatException('Missing required property')),
783+ hoast: (json.containsKey("hoast") ? json["hoast"] : throw FormatException('Missing required property')),
784+ irretentive: (json.containsKey("irretentive") ? json["irretentive"] : throw FormatException('Missing required property')),
785+ parcener: (json.containsKey("parcener") ? json["parcener"] : throw FormatException('Missing required property')),
786+ pedder: (json.containsKey("pedder") ? json["pedder"] : throw FormatException('Missing required property')),
787+ pseudoanatomic: (json.containsKey("pseudoanatomic") ? json["pseudoanatomic"] : throw FormatException('Missing required property')),
788+ rhizocarpian: (json.containsKey("rhizocarpian") ? json["rhizocarpian"] : throw FormatException('Missing required property')),
789+ samel: (json.containsKey("samel") ? json["samel"] : throw FormatException('Missing required property')),
790+ silker: (json.containsKey("silker") ? json["silker"] : throw FormatException('Missing required property')),
791+ subdentated: (json.containsKey("subdentated") ? json["subdentated"] : throw FormatException('Missing required property')),
792+ subobscure: (json.containsKey("subobscure") ? json["subobscure"] : throw FormatException('Missing required property')),
793793 );
794794
795795 Map<String, dynamic> toJson() => {
@@ -862,26 +862,26 @@ class Encrust {
862862 });
863863
864864 factory Encrust.fromJson(Map<String, dynamic> json) => Encrust(
865- comradely: json["comradely"],
866- diacanthous: json["diacanthous"],
867- feminineness: json["feminineness"],
868- gossamered: json["gossamered"],
869- hibernia: json["Hibernia"],
870- hibiscus: json["Hibiscus"],
871- lepidosauria: json["Lepidosauria"],
872- lollingly: json["lollingly"],
873- manager: json["manager"],
874- mechanic: json["mechanic"],
875- overminuteness: json["overminuteness"],
876- papelonne: json["papelonne"],
877- plebification: json["plebification"],
878- pugmiller: json["pugmiller"],
879- recoveror: json["recoveror"],
880- spermatoblastic: json["spermatoblastic"],
881- syllidae: json["Syllidae"],
882- ungyved: json["ungyved"],
883- whirlabout: json["whirlabout"],
884- woodenware: json["woodenware"],
865+ comradely: (json.containsKey("comradely") ? json["comradely"] : throw FormatException('Missing required property')),
866+ diacanthous: (json.containsKey("diacanthous") ? json["diacanthous"] : throw FormatException('Missing required property')),
867+ feminineness: (json.containsKey("feminineness") ? json["feminineness"] : throw FormatException('Missing required property')),
868+ gossamered: (json.containsKey("gossamered") ? json["gossamered"] : throw FormatException('Missing required property')),
869+ hibernia: (json.containsKey("Hibernia") ? json["Hibernia"] : throw FormatException('Missing required property')),
870+ hibiscus: (json.containsKey("Hibiscus") ? json["Hibiscus"] : throw FormatException('Missing required property')),
871+ lepidosauria: (json.containsKey("Lepidosauria") ? json["Lepidosauria"] : throw FormatException('Missing required property')),
872+ lollingly: (json.containsKey("lollingly") ? json["lollingly"] : throw FormatException('Missing required property')),
873+ manager: (json.containsKey("manager") ? json["manager"] : throw FormatException('Missing required property')),
874+ mechanic: (json.containsKey("mechanic") ? json["mechanic"] : throw FormatException('Missing required property')),
875+ overminuteness: (json.containsKey("overminuteness") ? json["overminuteness"] : throw FormatException('Missing required property')),
876+ papelonne: (json.containsKey("papelonne") ? json["papelonne"] : throw FormatException('Missing required property')),
877+ plebification: (json.containsKey("plebification") ? json["plebification"] : throw FormatException('Missing required property')),
878+ pugmiller: (json.containsKey("pugmiller") ? json["pugmiller"] : throw FormatException('Missing required property')),
879+ recoveror: (json.containsKey("recoveror") ? json["recoveror"] : throw FormatException('Missing required property')),
880+ spermatoblastic: (json.containsKey("spermatoblastic") ? json["spermatoblastic"] : throw FormatException('Missing required property')),
881+ syllidae: (json.containsKey("Syllidae") ? json["Syllidae"] : throw FormatException('Missing required property')),
882+ ungyved: (json.containsKey("ungyved") ? json["ungyved"] : throw FormatException('Missing required property')),
883+ whirlabout: (json.containsKey("whirlabout") ? json["whirlabout"] : throw FormatException('Missing required property')),
884+ woodenware: (json.containsKey("woodenware") ? json["woodenware"] : throw FormatException('Missing required property')),
885885 );
886886
887887 Map<String, dynamic> toJson() => {
@@ -954,26 +954,26 @@ class FagginglyClass {
954954 });
955955
956956 factory FagginglyClass.fromJson(Map<String, dynamic> json) => FagginglyClass(
957- abranchian: json["abranchian"],
958- aculeiform: json["aculeiform"],
959- adiaphoristic: json["adiaphoristic"],
960- adoptionism: json["adoptionism"],
961- anglic: json["Anglic"],
962- antrotomy: json["antrotomy"],
963- coerciveness: json["coerciveness"],
964- decorist: json["decorist"],
965- duckhood: json["duckhood"],
966- heteromeri: json["Heteromeri"],
967- hypochnose: json["hypochnose"],
968- lochage: json["lochage"],
969- melee: json["melee"],
970- nonconformitant: json["nonconformitant"],
971- poinsettia: json["Poinsettia"],
972- putatively: json["putatively"],
973- semivolatile: json["semivolatile"],
974- soleas: json["soleas"],
975- unfastenable: json["unfastenable"],
976- unmillinered: json["unmillinered"],
957+ abranchian: (json.containsKey("abranchian") ? json["abranchian"] : throw FormatException('Missing required property')),
958+ aculeiform: (json.containsKey("aculeiform") ? json["aculeiform"] : throw FormatException('Missing required property')),
959+ adiaphoristic: (json.containsKey("adiaphoristic") ? json["adiaphoristic"] : throw FormatException('Missing required property')),
960+ adoptionism: (json.containsKey("adoptionism") ? json["adoptionism"] : throw FormatException('Missing required property')),
961+ anglic: (json.containsKey("Anglic") ? json["Anglic"] : throw FormatException('Missing required property')),
962+ antrotomy: (json.containsKey("antrotomy") ? json["antrotomy"] : throw FormatException('Missing required property')),
963+ coerciveness: (json.containsKey("coerciveness") ? json["coerciveness"] : throw FormatException('Missing required property')),
964+ decorist: (json.containsKey("decorist") ? json["decorist"] : throw FormatException('Missing required property')),
965+ duckhood: (json.containsKey("duckhood") ? json["duckhood"] : throw FormatException('Missing required property')),
966+ heteromeri: (json.containsKey("Heteromeri") ? json["Heteromeri"] : throw FormatException('Missing required property')),
967+ hypochnose: (json.containsKey("hypochnose") ? json["hypochnose"] : throw FormatException('Missing required property')),
968+ lochage: (json.containsKey("lochage") ? json["lochage"] : throw FormatException('Missing required property')),
969+ melee: (json.containsKey("melee") ? json["melee"] : throw FormatException('Missing required property')),
970+ nonconformitant: (json.containsKey("nonconformitant") ? json["nonconformitant"] : throw FormatException('Missing required property')),
971+ poinsettia: (json.containsKey("Poinsettia") ? json["Poinsettia"] : throw FormatException('Missing required property')),
972+ putatively: (json.containsKey("putatively") ? json["putatively"] : throw FormatException('Missing required property')),
973+ semivolatile: (json.containsKey("semivolatile") ? json["semivolatile"] : throw FormatException('Missing required property')),
974+ soleas: (json.containsKey("soleas") ? json["soleas"] : throw FormatException('Missing required property')),
975+ unfastenable: (json.containsKey("unfastenable") ? json["unfastenable"] : throw FormatException('Missing required property')),
976+ unmillinered: (json.containsKey("unmillinered") ? json["unmillinered"] : throw FormatException('Missing required property')),
977977 );
978978
979979 Map<String, dynamic> toJson() => {
@@ -1046,26 +1046,26 @@ class FenkClass {
10461046 });
10471047
10481048 factory FenkClass.fromJson(Map<String, dynamic> json) => FenkClass(
1049- apoise: json["apoise"],
1050- astronomize: json["astronomize"],
1051- cockhorse: json["cockhorse"],
1052- copular: json["copular"],
1053- dagomba: json["Dagomba"],
1054- draffy: json["draffy"],
1055- foreigner: json["foreigner"],
1056- guyandot: json["Guyandot"],
1057- neurogliosis: json["neurogliosis"],
1058- osmious: json["osmious"],
1059- palpitate: json["palpitate"],
1060- rebukeable: json["rebukeable"],
1061- reinwardtia: json["Reinwardtia"],
1062- reservatory: json["reservatory"],
1063- scalt: json["scalt"],
1064- scripturalize: json["scripturalize"],
1065- tintometer: json["tintometer"],
1066- tritoness: json["Tritoness"],
1067- undergrade: json["undergrade"],
1068- undermountain: json["undermountain"],
1049+ apoise: (json.containsKey("apoise") ? json["apoise"] : throw FormatException('Missing required property')),
1050+ astronomize: (json.containsKey("astronomize") ? json["astronomize"] : throw FormatException('Missing required property')),
1051+ cockhorse: (json.containsKey("cockhorse") ? json["cockhorse"] : throw FormatException('Missing required property')),
1052+ copular: (json.containsKey("copular") ? json["copular"] : throw FormatException('Missing required property')),
1053+ dagomba: (json.containsKey("Dagomba") ? json["Dagomba"] : throw FormatException('Missing required property')),
1054+ draffy: (json.containsKey("draffy") ? json["draffy"] : throw FormatException('Missing required property')),
1055+ foreigner: (json.containsKey("foreigner") ? json["foreigner"] : throw FormatException('Missing required property')),
1056+ guyandot: (json.containsKey("Guyandot") ? json["Guyandot"] : throw FormatException('Missing required property')),
1057+ neurogliosis: (json.containsKey("neurogliosis") ? json["neurogliosis"] : throw FormatException('Missing required property')),
1058+ osmious: (json.containsKey("osmious") ? json["osmious"] : throw FormatException('Missing required property')),
1059+ palpitate: (json.containsKey("palpitate") ? json["palpitate"] : throw FormatException('Missing required property')),
1060+ rebukeable: (json.containsKey("rebukeable") ? json["rebukeable"] : throw FormatException('Missing required property')),
1061+ reinwardtia: (json.containsKey("Reinwardtia") ? json["Reinwardtia"] : throw FormatException('Missing required property')),
1062+ reservatory: (json.containsKey("reservatory") ? json["reservatory"] : throw FormatException('Missing required property')),
1063+ scalt: (json.containsKey("scalt") ? json["scalt"] : throw FormatException('Missing required property')),
1064+ scripturalize: (json.containsKey("scripturalize") ? json["scripturalize"] : throw FormatException('Missing required property')),
1065+ tintometer: (json.containsKey("tintometer") ? json["tintometer"] : throw FormatException('Missing required property')),
1066+ tritoness: (json.containsKey("Tritoness") ? json["Tritoness"] : throw FormatException('Missing required property')),
1067+ undergrade: (json.containsKey("undergrade") ? json["undergrade"] : throw FormatException('Missing required property')),
1068+ undermountain: (json.containsKey("undermountain") ? json["undermountain"] : throw FormatException('Missing required property')),
10691069 );
10701070
10711071 Map<String, dynamic> toJson() => {
@@ -1138,26 +1138,26 @@ class FlagmakingClass {
11381138 });
11391139
11401140 factory FlagmakingClass.fromJson(Map<String, dynamic> json) => FlagmakingClass(
1141- albarco: json["albarco"],
1142- bunodonta: json["Bunodonta"],
1143- hornify: json["hornify"],
1144- hydrocorisae: json["Hydrocorisae"],
1145- hypoglossus: json["hypoglossus"],
1146- inexpiably: json["inexpiably"],
1147- ingratitude: json["ingratitude"],
1148- ladyfly: json["ladyfly"],
1149- medicament: json["medicament"],
1150- monogrammatic: json["monogrammatic"],
1151- nobbut: json["nobbut"],
1152- notacanthidae: json["Notacanthidae"],
1153- polyplacophore: json["polyplacophore"],
1154- proexercise: json["proexercise"],
1155- protoplast: json["protoplast"],
1156- puzzling: json["puzzling"],
1157- splanchnoskeleton: json["splanchnoskeleton"],
1158- unloveliness: json["unloveliness"],
1159- unquarantined: json["unquarantined"],
1160- unrenounceable: json["unrenounceable"],
1141+ albarco: (json.containsKey("albarco") ? json["albarco"] : throw FormatException('Missing required property')),
1142+ bunodonta: (json.containsKey("Bunodonta") ? json["Bunodonta"] : throw FormatException('Missing required property')),
1143+ hornify: (json.containsKey("hornify") ? json["hornify"] : throw FormatException('Missing required property')),
1144+ hydrocorisae: (json.containsKey("Hydrocorisae") ? json["Hydrocorisae"] : throw FormatException('Missing required property')),
1145+ hypoglossus: (json.containsKey("hypoglossus") ? json["hypoglossus"] : throw FormatException('Missing required property')),
1146+ inexpiably: (json.containsKey("inexpiably") ? json["inexpiably"] : throw FormatException('Missing required property')),
1147+ ingratitude: (json.containsKey("ingratitude") ? json["ingratitude"] : throw FormatException('Missing required property')),
1148+ ladyfly: (json.containsKey("ladyfly") ? json["ladyfly"] : throw FormatException('Missing required property')),
1149+ medicament: (json.containsKey("medicament") ? json["medicament"] : throw FormatException('Missing required property')),
1150+ monogrammatic: (json.containsKey("monogrammatic") ? json["monogrammatic"] : throw FormatException('Missing required property')),
1151+ nobbut: (json.containsKey("nobbut") ? json["nobbut"] : throw FormatException('Missing required property')),
1152+ notacanthidae: (json.containsKey("Notacanthidae") ? json["Notacanthidae"] : throw FormatException('Missing required property')),
1153+ polyplacophore: (json.containsKey("polyplacophore") ? json["polyplacophore"] : throw FormatException('Missing required property')),
1154+ proexercise: (json.containsKey("proexercise") ? json["proexercise"] : throw FormatException('Missing required property')),
1155+ protoplast: (json.containsKey("protoplast") ? json["protoplast"] : throw FormatException('Missing required property')),
1156+ puzzling: (json.containsKey("puzzling") ? json["puzzling"] : throw FormatException('Missing required property')),
1157+ splanchnoskeleton: (json.containsKey("splanchnoskeleton") ? json["splanchnoskeleton"] : throw FormatException('Missing required property')),
1158+ unloveliness: (json.containsKey("unloveliness") ? json["unloveliness"] : throw FormatException('Missing required property')),
1159+ unquarantined: (json.containsKey("unquarantined") ? json["unquarantined"] : throw FormatException('Missing required property')),
1160+ unrenounceable: (json.containsKey("unrenounceable") ? json["unrenounceable"] : throw FormatException('Missing required property')),
11611161 );
11621162
11631163 Map<String, dynamic> toJson() => {
@@ -1316,7 +1316,7 @@ class Interacinar {
13161316 benefactorship: json["benefactorship"],
13171317 triseriatim: json["triseriatim"],
13181318 tubbing: json["tubbing"],
1319- untrimmed: json["untrimmed"],
1319+ untrimmed: (json.containsKey("untrimmed") ? json["untrimmed"] : throw FormatException('Missing required property')),
13201320 );
13211321
13221322 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/priority/combinations2.json

2 generated files · +244 −244
Mdartdefault / TopLevel.dart+122 −122
@@ -116,7 +116,7 @@ class TopLevel {
116116 andriana: List<String?>.from(json["Andriana"].map((x) => x)),
117117 ankee: List<dynamic>.from(json["ankee"].map((x) => x)),
118118 annihilator: List<Map<String, int?>?>.from(json["annihilator"].map((x) => x == null ? null : Map.from(x!).map((k, v) => MapEntry<String, int?>(k, v)))),
119- annulose: json["annulose"],
119+ annulose: (json.containsKey("annulose") ? json["annulose"] : throw FormatException('Missing required property')),
120120 ansarie: List<dynamic>.from(json["Ansarie"].map((x) => x)),
121121 aphasia: List<dynamic>.from(json["aphasia"].map((x) => x)),
122122 asprawl: List<dynamic>.from(json["asprawl"].map((x) => x)),
@@ -246,26 +246,26 @@ class AlleviateClass {
246246 });
247247
248248 factory AlleviateClass.fromJson(Map<String, dynamic> json) => AlleviateClass(
249- apriori: json["apriori"],
250- beggarer: json["beggarer"],
251- brokenheartedly: json["brokenheartedly"],
252- debilitation: json["debilitation"],
253- frike: json["frike"],
254- gastrolith: json["gastrolith"],
255- hulsean: json["Hulsean"],
256- orthocentric: json["orthocentric"],
257- petaly: json["petaly"],
258- probudgeting: json["probudgeting"],
259- reacquire: json["reacquire"],
260- scow: json["scow"],
261- shutoff: json["shutoff"],
262- subcontiguous: json["subcontiguous"],
263- suffumigate: json["suffumigate"],
264- transformable: json["transformable"],
265- uncoroneted: json["uncoroneted"],
266- unparking: json["unparking"],
267- unvarnishedness: json["unvarnishedness"],
268- wherewithal: json["wherewithal"],
249+ apriori: (json.containsKey("apriori") ? json["apriori"] : throw FormatException('Missing required property')),
250+ beggarer: (json.containsKey("beggarer") ? json["beggarer"] : throw FormatException('Missing required property')),
251+ brokenheartedly: (json.containsKey("brokenheartedly") ? json["brokenheartedly"] : throw FormatException('Missing required property')),
252+ debilitation: (json.containsKey("debilitation") ? json["debilitation"] : throw FormatException('Missing required property')),
253+ frike: (json.containsKey("frike") ? json["frike"] : throw FormatException('Missing required property')),
254+ gastrolith: (json.containsKey("gastrolith") ? json["gastrolith"] : throw FormatException('Missing required property')),
255+ hulsean: (json.containsKey("Hulsean") ? json["Hulsean"] : throw FormatException('Missing required property')),
256+ orthocentric: (json.containsKey("orthocentric") ? json["orthocentric"] : throw FormatException('Missing required property')),
257+ petaly: (json.containsKey("petaly") ? json["petaly"] : throw FormatException('Missing required property')),
258+ probudgeting: (json.containsKey("probudgeting") ? json["probudgeting"] : throw FormatException('Missing required property')),
259+ reacquire: (json.containsKey("reacquire") ? json["reacquire"] : throw FormatException('Missing required property')),
260+ scow: (json.containsKey("scow") ? json["scow"] : throw FormatException('Missing required property')),
261+ shutoff: (json.containsKey("shutoff") ? json["shutoff"] : throw FormatException('Missing required property')),
262+ subcontiguous: (json.containsKey("subcontiguous") ? json["subcontiguous"] : throw FormatException('Missing required property')),
263+ suffumigate: (json.containsKey("suffumigate") ? json["suffumigate"] : throw FormatException('Missing required property')),
264+ transformable: (json.containsKey("transformable") ? json["transformable"] : throw FormatException('Missing required property')),
265+ uncoroneted: (json.containsKey("uncoroneted") ? json["uncoroneted"] : throw FormatException('Missing required property')),
266+ unparking: (json.containsKey("unparking") ? json["unparking"] : throw FormatException('Missing required property')),
267+ unvarnishedness: (json.containsKey("unvarnishedness") ? json["unvarnishedness"] : throw FormatException('Missing required property')),
268+ wherewithal: (json.containsKey("wherewithal") ? json["wherewithal"] : throw FormatException('Missing required property')),
269269 );
270270
271271 Map<String, dynamic> toJson() => {
@@ -312,7 +312,7 @@ class Rebecca {
312312 chirotherium: json["Chirotherium"],
313313 disdiapason: json["disdiapason"],
314314 homocerc: json["homocerc"],
315- nonbookish: json["nonbookish"],
315+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
316316 );
317317
318318 Map<String, dynamic> toJson() => {
@@ -482,26 +482,26 @@ class AnkeeClass {
482482 });
483483
484484 factory AnkeeClass.fromJson(Map<String, dynamic> json) => AnkeeClass(
485- anomoean: json["Anomoean"],
486- barleyhood: json["barleyhood"],
487- befriender: json["befriender"],
488- brutishness: json["brutishness"],
489- cephalalgy: json["cephalalgy"],
490- cirurgian: json["cirurgian"],
491- conventionally: json["conventionally"],
492- jackshay: json["jackshay"],
493- milammeter: json["milammeter"],
494- naja: json["Naja"],
495- ombrological: json["ombrological"],
496- phonasthenia: json["phonasthenia"],
497- retrievableness: json["retrievableness"],
498- snakily: json["snakily"],
499- swot: json["swot"],
500- tartlet: json["tartlet"],
501- thiofuran: json["thiofuran"],
502- tracheophone: json["tracheophone"],
503- tuglike: json["tuglike"],
504- unscratchingly: json["unscratchingly"],
485+ anomoean: (json.containsKey("Anomoean") ? json["Anomoean"] : throw FormatException('Missing required property')),
486+ barleyhood: (json.containsKey("barleyhood") ? json["barleyhood"] : throw FormatException('Missing required property')),
487+ befriender: (json.containsKey("befriender") ? json["befriender"] : throw FormatException('Missing required property')),
488+ brutishness: (json.containsKey("brutishness") ? json["brutishness"] : throw FormatException('Missing required property')),
489+ cephalalgy: (json.containsKey("cephalalgy") ? json["cephalalgy"] : throw FormatException('Missing required property')),
490+ cirurgian: (json.containsKey("cirurgian") ? json["cirurgian"] : throw FormatException('Missing required property')),
491+ conventionally: (json.containsKey("conventionally") ? json["conventionally"] : throw FormatException('Missing required property')),
492+ jackshay: (json.containsKey("jackshay") ? json["jackshay"] : throw FormatException('Missing required property')),
493+ milammeter: (json.containsKey("milammeter") ? json["milammeter"] : throw FormatException('Missing required property')),
494+ naja: (json.containsKey("Naja") ? json["Naja"] : throw FormatException('Missing required property')),
495+ ombrological: (json.containsKey("ombrological") ? json["ombrological"] : throw FormatException('Missing required property')),
496+ phonasthenia: (json.containsKey("phonasthenia") ? json["phonasthenia"] : throw FormatException('Missing required property')),
497+ retrievableness: (json.containsKey("retrievableness") ? json["retrievableness"] : throw FormatException('Missing required property')),
498+ snakily: (json.containsKey("snakily") ? json["snakily"] : throw FormatException('Missing required property')),
499+ swot: (json.containsKey("swot") ? json["swot"] : throw FormatException('Missing required property')),
500+ tartlet: (json.containsKey("tartlet") ? json["tartlet"] : throw FormatException('Missing required property')),
501+ thiofuran: (json.containsKey("thiofuran") ? json["thiofuran"] : throw FormatException('Missing required property')),
502+ tracheophone: (json.containsKey("tracheophone") ? json["tracheophone"] : throw FormatException('Missing required property')),
503+ tuglike: (json.containsKey("tuglike") ? json["tuglike"] : throw FormatException('Missing required property')),
504+ unscratchingly: (json.containsKey("unscratchingly") ? json["unscratchingly"] : throw FormatException('Missing required property')),
505505 );
506506
507507 Map<String, dynamic> toJson() => {
@@ -574,26 +574,26 @@ class AnsarieClass {
574574 });
575575
576576 factory AnsarieClass.fromJson(Map<String, dynamic> json) => AnsarieClass(
577- accension: json["accension"],
578- alida: json["Alida"],
579- asteria: json["asteria"],
580- beriberic: json["beriberic"],
581- edgebone: json["edgebone"],
582- gastrodialysis: json["gastrodialysis"],
583- geographic: json["geographic"],
584- ictonyx: json["Ictonyx"],
585- metrocele: json["metrocele"],
586- misgraft: json["misgraft"],
587- monteith: json["monteith"],
588- notcher: json["notcher"],
589- prorestriction: json["prorestriction"],
590- ramist: json["Ramist"],
591- throatlet: json["throatlet"],
592- unfair: json["unfair"],
593- unsynonymous: json["unsynonymous"],
594- water: json["water"],
595- zestfully: json["zestfully"],
596- zincic: json["zincic"],
577+ accension: (json.containsKey("accension") ? json["accension"] : throw FormatException('Missing required property')),
578+ alida: (json.containsKey("Alida") ? json["Alida"] : throw FormatException('Missing required property')),
579+ asteria: (json.containsKey("asteria") ? json["asteria"] : throw FormatException('Missing required property')),
580+ beriberic: (json.containsKey("beriberic") ? json["beriberic"] : throw FormatException('Missing required property')),
581+ edgebone: (json.containsKey("edgebone") ? json["edgebone"] : throw FormatException('Missing required property')),
582+ gastrodialysis: (json.containsKey("gastrodialysis") ? json["gastrodialysis"] : throw FormatException('Missing required property')),
583+ geographic: (json.containsKey("geographic") ? json["geographic"] : throw FormatException('Missing required property')),
584+ ictonyx: (json.containsKey("Ictonyx") ? json["Ictonyx"] : throw FormatException('Missing required property')),
585+ metrocele: (json.containsKey("metrocele") ? json["metrocele"] : throw FormatException('Missing required property')),
586+ misgraft: (json.containsKey("misgraft") ? json["misgraft"] : throw FormatException('Missing required property')),
587+ monteith: (json.containsKey("monteith") ? json["monteith"] : throw FormatException('Missing required property')),
588+ notcher: (json.containsKey("notcher") ? json["notcher"] : throw FormatException('Missing required property')),
589+ prorestriction: (json.containsKey("prorestriction") ? json["prorestriction"] : throw FormatException('Missing required property')),
590+ ramist: (json.containsKey("Ramist") ? json["Ramist"] : throw FormatException('Missing required property')),
591+ throatlet: (json.containsKey("throatlet") ? json["throatlet"] : throw FormatException('Missing required property')),
592+ unfair: (json.containsKey("unfair") ? json["unfair"] : throw FormatException('Missing required property')),
593+ unsynonymous: (json.containsKey("unsynonymous") ? json["unsynonymous"] : throw FormatException('Missing required property')),
594+ water: (json.containsKey("water") ? json["water"] : throw FormatException('Missing required property')),
595+ zestfully: (json.containsKey("zestfully") ? json["zestfully"] : throw FormatException('Missing required property')),
596+ zincic: (json.containsKey("zincic") ? json["zincic"] : throw FormatException('Missing required property')),
597597 );
598598
599599 Map<String, dynamic> toJson() => {
@@ -666,26 +666,26 @@ class ChytridiaceaeClass {
666666 });
667667
668668 factory ChytridiaceaeClass.fromJson(Map<String, dynamic> json) => ChytridiaceaeClass(
669- batidaceae: json["Batidaceae"],
670- brechites: json["Brechites"],
671- codespairer: json["codespairer"],
672- emery: json["Emery"],
673- enervative: json["enervative"],
674- excriminate: json["excriminate"],
675- goshenite: json["goshenite"],
676- grime: json["grime"],
677- gritten: json["gritten"],
678- hectorly: json["hectorly"],
679- intermediation: json["intermediation"],
680- meeterly: json["meeterly"],
681- narraganset: json["Narraganset"],
682- onymatic: json["onymatic"],
683- paddlecock: json["paddlecock"],
684- thana: json["thana"],
685- thornily: json["thornily"],
686- uckia: json["uckia"],
687- unmettle: json["unmettle"],
688- vorticellid: json["vorticellid"],
669+ batidaceae: (json.containsKey("Batidaceae") ? json["Batidaceae"] : throw FormatException('Missing required property')),
670+ brechites: (json.containsKey("Brechites") ? json["Brechites"] : throw FormatException('Missing required property')),
671+ codespairer: (json.containsKey("codespairer") ? json["codespairer"] : throw FormatException('Missing required property')),
672+ emery: (json.containsKey("Emery") ? json["Emery"] : throw FormatException('Missing required property')),
673+ enervative: (json.containsKey("enervative") ? json["enervative"] : throw FormatException('Missing required property')),
674+ excriminate: (json.containsKey("excriminate") ? json["excriminate"] : throw FormatException('Missing required property')),
675+ goshenite: (json.containsKey("goshenite") ? json["goshenite"] : throw FormatException('Missing required property')),
676+ grime: (json.containsKey("grime") ? json["grime"] : throw FormatException('Missing required property')),
677+ gritten: (json.containsKey("gritten") ? json["gritten"] : throw FormatException('Missing required property')),
678+ hectorly: (json.containsKey("hectorly") ? json["hectorly"] : throw FormatException('Missing required property')),
679+ intermediation: (json.containsKey("intermediation") ? json["intermediation"] : throw FormatException('Missing required property')),
680+ meeterly: (json.containsKey("meeterly") ? json["meeterly"] : throw FormatException('Missing required property')),
681+ narraganset: (json.containsKey("Narraganset") ? json["Narraganset"] : throw FormatException('Missing required property')),
682+ onymatic: (json.containsKey("onymatic") ? json["onymatic"] : throw FormatException('Missing required property')),
683+ paddlecock: (json.containsKey("paddlecock") ? json["paddlecock"] : throw FormatException('Missing required property')),
684+ thana: (json.containsKey("thana") ? json["thana"] : throw FormatException('Missing required property')),
685+ thornily: (json.containsKey("thornily") ? json["thornily"] : throw FormatException('Missing required property')),
686+ uckia: (json.containsKey("uckia") ? json["uckia"] : throw FormatException('Missing required property')),
687+ unmettle: (json.containsKey("unmettle") ? json["unmettle"] : throw FormatException('Missing required property')),
688+ vorticellid: (json.containsKey("vorticellid") ? json["vorticellid"] : throw FormatException('Missing required property')),
689689 );
690690
691691 Map<String, dynamic> toJson() => {
@@ -870,26 +870,26 @@ class GryphosaurusClass {
870870 });
871871
872872 factory GryphosaurusClass.fromJson(Map<String, dynamic> json) => GryphosaurusClass(
873- amissibility: json["amissibility"],
874- burushaski: json["Burushaski"],
875- citronin: json["citronin"],
876- coplaintiff: json["coplaintiff"],
877- disquisitionary: json["disquisitionary"],
878- enoplan: json["enoplan"],
879- faintness: json["faintness"],
880- hebetomy: json["hebetomy"],
881- islandry: json["islandry"],
882- lameduck: json["lameduck"],
883- overbattle: json["overbattle"],
884- overinterested: json["overinterested"],
885- phrenologic: json["phrenologic"],
886- rainband: json["rainband"],
887- shiningly: json["shiningly"],
888- stamineous: json["stamineous"],
889- subscapularis: json["subscapularis"],
890- tahami: json["Tahami"],
891- undaubed: json["undaubed"],
892- underntime: json["underntime"],
873+ amissibility: (json.containsKey("amissibility") ? json["amissibility"] : throw FormatException('Missing required property')),
874+ burushaski: (json.containsKey("Burushaski") ? json["Burushaski"] : throw FormatException('Missing required property')),
875+ citronin: (json.containsKey("citronin") ? json["citronin"] : throw FormatException('Missing required property')),
876+ coplaintiff: (json.containsKey("coplaintiff") ? json["coplaintiff"] : throw FormatException('Missing required property')),
877+ disquisitionary: (json.containsKey("disquisitionary") ? json["disquisitionary"] : throw FormatException('Missing required property')),
878+ enoplan: (json.containsKey("enoplan") ? json["enoplan"] : throw FormatException('Missing required property')),
879+ faintness: (json.containsKey("faintness") ? json["faintness"] : throw FormatException('Missing required property')),
880+ hebetomy: (json.containsKey("hebetomy") ? json["hebetomy"] : throw FormatException('Missing required property')),
881+ islandry: (json.containsKey("islandry") ? json["islandry"] : throw FormatException('Missing required property')),
882+ lameduck: (json.containsKey("lameduck") ? json["lameduck"] : throw FormatException('Missing required property')),
883+ overbattle: (json.containsKey("overbattle") ? json["overbattle"] : throw FormatException('Missing required property')),
884+ overinterested: (json.containsKey("overinterested") ? json["overinterested"] : throw FormatException('Missing required property')),
885+ phrenologic: (json.containsKey("phrenologic") ? json["phrenologic"] : throw FormatException('Missing required property')),
886+ rainband: (json.containsKey("rainband") ? json["rainband"] : throw FormatException('Missing required property')),
887+ shiningly: (json.containsKey("shiningly") ? json["shiningly"] : throw FormatException('Missing required property')),
888+ stamineous: (json.containsKey("stamineous") ? json["stamineous"] : throw FormatException('Missing required property')),
889+ subscapularis: (json.containsKey("subscapularis") ? json["subscapularis"] : throw FormatException('Missing required property')),
890+ tahami: (json.containsKey("Tahami") ? json["Tahami"] : throw FormatException('Missing required property')),
891+ undaubed: (json.containsKey("undaubed") ? json["undaubed"] : throw FormatException('Missing required property')),
892+ underntime: (json.containsKey("underntime") ? json["underntime"] : throw FormatException('Missing required property')),
893893 );
894894
895895 Map<String, dynamic> toJson() => {
@@ -1074,26 +1074,26 @@ class OskarClass {
10741074 });
10751075
10761076 factory OskarClass.fromJson(Map<String, dynamic> json) => OskarClass(
1077- acrobates: json["Acrobates"],
1078- beanshooter: json["beanshooter"],
1079- bearhound: json["bearhound"],
1080- cayuga: json["Cayuga"],
1081- guarneri: json["guarneri"],
1082- hypochondriacism: json["hypochondriacism"],
1083- indication: json["indication"],
1084- jaculative: json["jaculative"],
1085- nagana: json["nagana"],
1086- netherlandish: json["Netherlandish"],
1087- noctivagous: json["noctivagous"],
1088- nonphysiological: json["nonphysiological"],
1089- praxis: json["praxis"],
1090- provision: json["provision"],
1091- subterhuman: json["subterhuman"],
1092- sunlit: json["sunlit"],
1093- syncraniate: json["syncraniate"],
1094- teachment: json["teachment"],
1095- unmutinous: json["unmutinous"],
1096- unstoppable: json["unstoppable"],
1077+ acrobates: (json.containsKey("Acrobates") ? json["Acrobates"] : throw FormatException('Missing required property')),
1078+ beanshooter: (json.containsKey("beanshooter") ? json["beanshooter"] : throw FormatException('Missing required property')),
1079+ bearhound: (json.containsKey("bearhound") ? json["bearhound"] : throw FormatException('Missing required property')),
1080+ cayuga: (json.containsKey("Cayuga") ? json["Cayuga"] : throw FormatException('Missing required property')),
1081+ guarneri: (json.containsKey("guarneri") ? json["guarneri"] : throw FormatException('Missing required property')),
1082+ hypochondriacism: (json.containsKey("hypochondriacism") ? json["hypochondriacism"] : throw FormatException('Missing required property')),
1083+ indication: (json.containsKey("indication") ? json["indication"] : throw FormatException('Missing required property')),
1084+ jaculative: (json.containsKey("jaculative") ? json["jaculative"] : throw FormatException('Missing required property')),
1085+ nagana: (json.containsKey("nagana") ? json["nagana"] : throw FormatException('Missing required property')),
1086+ netherlandish: (json.containsKey("Netherlandish") ? json["Netherlandish"] : throw FormatException('Missing required property')),
1087+ noctivagous: (json.containsKey("noctivagous") ? json["noctivagous"] : throw FormatException('Missing required property')),
1088+ nonphysiological: (json.containsKey("nonphysiological") ? json["nonphysiological"] : throw FormatException('Missing required property')),
1089+ praxis: (json.containsKey("praxis") ? json["praxis"] : throw FormatException('Missing required property')),
1090+ provision: (json.containsKey("provision") ? json["provision"] : throw FormatException('Missing required property')),
1091+ subterhuman: (json.containsKey("subterhuman") ? json["subterhuman"] : throw FormatException('Missing required property')),
1092+ sunlit: (json.containsKey("sunlit") ? json["sunlit"] : throw FormatException('Missing required property')),
1093+ syncraniate: (json.containsKey("syncraniate") ? json["syncraniate"] : throw FormatException('Missing required property')),
1094+ teachment: (json.containsKey("teachment") ? json["teachment"] : throw FormatException('Missing required property')),
1095+ unmutinous: (json.containsKey("unmutinous") ? json["unmutinous"] : throw FormatException('Missing required property')),
1096+ unstoppable: (json.containsKey("unstoppable") ? json["unstoppable"] : throw FormatException('Missing required property')),
10971097 );
10981098
10991099 Map<String, dynamic> toJson() => {
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+122 −122
@@ -116,7 +116,7 @@ class TopLevel {
116116 andriana: List<String?>.from(json["Andriana"].map((x) => x)),
117117 ankee: List<dynamic>.from(json["ankee"].map((x) => x)),
118118 annihilator: List<Map<String, int?>?>.from(json["annihilator"].map((x) => x == null ? null : Map.from(x!).map((k, v) => MapEntry<String, int?>(k, v)))),
119- annulose: json["annulose"],
119+ annulose: (json.containsKey("annulose") ? json["annulose"] : throw FormatException('Missing required property')),
120120 ansarie: List<dynamic>.from(json["Ansarie"].map((x) => x)),
121121 aphasia: List<dynamic>.from(json["aphasia"].map((x) => x)),
122122 asprawl: List<dynamic>.from(json["asprawl"].map((x) => x)),
@@ -246,26 +246,26 @@ class AlleviateClass {
246246 });
247247
248248 factory AlleviateClass.fromJson(Map<String, dynamic> json) => AlleviateClass(
249- apriori: json["apriori"],
250- beggarer: json["beggarer"],
251- brokenheartedly: json["brokenheartedly"],
252- debilitation: json["debilitation"],
253- frike: json["frike"],
254- gastrolith: json["gastrolith"],
255- hulsean: json["Hulsean"],
256- orthocentric: json["orthocentric"],
257- petaly: json["petaly"],
258- probudgeting: json["probudgeting"],
259- reacquire: json["reacquire"],
260- scow: json["scow"],
261- shutoff: json["shutoff"],
262- subcontiguous: json["subcontiguous"],
263- suffumigate: json["suffumigate"],
264- transformable: json["transformable"],
265- uncoroneted: json["uncoroneted"],
266- unparking: json["unparking"],
267- unvarnishedness: json["unvarnishedness"],
268- wherewithal: json["wherewithal"],
249+ apriori: (json.containsKey("apriori") ? json["apriori"] : throw FormatException('Missing required property')),
250+ beggarer: (json.containsKey("beggarer") ? json["beggarer"] : throw FormatException('Missing required property')),
251+ brokenheartedly: (json.containsKey("brokenheartedly") ? json["brokenheartedly"] : throw FormatException('Missing required property')),
252+ debilitation: (json.containsKey("debilitation") ? json["debilitation"] : throw FormatException('Missing required property')),
253+ frike: (json.containsKey("frike") ? json["frike"] : throw FormatException('Missing required property')),
254+ gastrolith: (json.containsKey("gastrolith") ? json["gastrolith"] : throw FormatException('Missing required property')),
255+ hulsean: (json.containsKey("Hulsean") ? json["Hulsean"] : throw FormatException('Missing required property')),
256+ orthocentric: (json.containsKey("orthocentric") ? json["orthocentric"] : throw FormatException('Missing required property')),
257+ petaly: (json.containsKey("petaly") ? json["petaly"] : throw FormatException('Missing required property')),
258+ probudgeting: (json.containsKey("probudgeting") ? json["probudgeting"] : throw FormatException('Missing required property')),
259+ reacquire: (json.containsKey("reacquire") ? json["reacquire"] : throw FormatException('Missing required property')),
260+ scow: (json.containsKey("scow") ? json["scow"] : throw FormatException('Missing required property')),
261+ shutoff: (json.containsKey("shutoff") ? json["shutoff"] : throw FormatException('Missing required property')),
262+ subcontiguous: (json.containsKey("subcontiguous") ? json["subcontiguous"] : throw FormatException('Missing required property')),
263+ suffumigate: (json.containsKey("suffumigate") ? json["suffumigate"] : throw FormatException('Missing required property')),
264+ transformable: (json.containsKey("transformable") ? json["transformable"] : throw FormatException('Missing required property')),
265+ uncoroneted: (json.containsKey("uncoroneted") ? json["uncoroneted"] : throw FormatException('Missing required property')),
266+ unparking: (json.containsKey("unparking") ? json["unparking"] : throw FormatException('Missing required property')),
267+ unvarnishedness: (json.containsKey("unvarnishedness") ? json["unvarnishedness"] : throw FormatException('Missing required property')),
268+ wherewithal: (json.containsKey("wherewithal") ? json["wherewithal"] : throw FormatException('Missing required property')),
269269 );
270270
271271 Map<String, dynamic> toJson() => {
@@ -312,7 +312,7 @@ class Rebecca {
312312 chirotherium: json["Chirotherium"],
313313 disdiapason: json["disdiapason"],
314314 homocerc: json["homocerc"],
315- nonbookish: json["nonbookish"],
315+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
316316 );
317317
318318 Map<String, dynamic> toJson() => {
@@ -482,26 +482,26 @@ class AnkeeClass {
482482 });
483483
484484 factory AnkeeClass.fromJson(Map<String, dynamic> json) => AnkeeClass(
485- anomoean: json["Anomoean"],
486- barleyhood: json["barleyhood"],
487- befriender: json["befriender"],
488- brutishness: json["brutishness"],
489- cephalalgy: json["cephalalgy"],
490- cirurgian: json["cirurgian"],
491- conventionally: json["conventionally"],
492- jackshay: json["jackshay"],
493- milammeter: json["milammeter"],
494- naja: json["Naja"],
495- ombrological: json["ombrological"],
496- phonasthenia: json["phonasthenia"],
497- retrievableness: json["retrievableness"],
498- snakily: json["snakily"],
499- swot: json["swot"],
500- tartlet: json["tartlet"],
501- thiofuran: json["thiofuran"],
502- tracheophone: json["tracheophone"],
503- tuglike: json["tuglike"],
504- unscratchingly: json["unscratchingly"],
485+ anomoean: (json.containsKey("Anomoean") ? json["Anomoean"] : throw FormatException('Missing required property')),
486+ barleyhood: (json.containsKey("barleyhood") ? json["barleyhood"] : throw FormatException('Missing required property')),
487+ befriender: (json.containsKey("befriender") ? json["befriender"] : throw FormatException('Missing required property')),
488+ brutishness: (json.containsKey("brutishness") ? json["brutishness"] : throw FormatException('Missing required property')),
489+ cephalalgy: (json.containsKey("cephalalgy") ? json["cephalalgy"] : throw FormatException('Missing required property')),
490+ cirurgian: (json.containsKey("cirurgian") ? json["cirurgian"] : throw FormatException('Missing required property')),
491+ conventionally: (json.containsKey("conventionally") ? json["conventionally"] : throw FormatException('Missing required property')),
492+ jackshay: (json.containsKey("jackshay") ? json["jackshay"] : throw FormatException('Missing required property')),
493+ milammeter: (json.containsKey("milammeter") ? json["milammeter"] : throw FormatException('Missing required property')),
494+ naja: (json.containsKey("Naja") ? json["Naja"] : throw FormatException('Missing required property')),
495+ ombrological: (json.containsKey("ombrological") ? json["ombrological"] : throw FormatException('Missing required property')),
496+ phonasthenia: (json.containsKey("phonasthenia") ? json["phonasthenia"] : throw FormatException('Missing required property')),
497+ retrievableness: (json.containsKey("retrievableness") ? json["retrievableness"] : throw FormatException('Missing required property')),
498+ snakily: (json.containsKey("snakily") ? json["snakily"] : throw FormatException('Missing required property')),
499+ swot: (json.containsKey("swot") ? json["swot"] : throw FormatException('Missing required property')),
500+ tartlet: (json.containsKey("tartlet") ? json["tartlet"] : throw FormatException('Missing required property')),
501+ thiofuran: (json.containsKey("thiofuran") ? json["thiofuran"] : throw FormatException('Missing required property')),
502+ tracheophone: (json.containsKey("tracheophone") ? json["tracheophone"] : throw FormatException('Missing required property')),
503+ tuglike: (json.containsKey("tuglike") ? json["tuglike"] : throw FormatException('Missing required property')),
504+ unscratchingly: (json.containsKey("unscratchingly") ? json["unscratchingly"] : throw FormatException('Missing required property')),
505505 );
506506
507507 Map<String, dynamic> toJson() => {
@@ -574,26 +574,26 @@ class AnsarieClass {
574574 });
575575
576576 factory AnsarieClass.fromJson(Map<String, dynamic> json) => AnsarieClass(
577- accension: json["accension"],
578- alida: json["Alida"],
579- asteria: json["asteria"],
580- beriberic: json["beriberic"],
581- edgebone: json["edgebone"],
582- gastrodialysis: json["gastrodialysis"],
583- geographic: json["geographic"],
584- ictonyx: json["Ictonyx"],
585- metrocele: json["metrocele"],
586- misgraft: json["misgraft"],
587- monteith: json["monteith"],
588- notcher: json["notcher"],
589- prorestriction: json["prorestriction"],
590- ramist: json["Ramist"],
591- throatlet: json["throatlet"],
592- unfair: json["unfair"],
593- unsynonymous: json["unsynonymous"],
594- water: json["water"],
595- zestfully: json["zestfully"],
596- zincic: json["zincic"],
577+ accension: (json.containsKey("accension") ? json["accension"] : throw FormatException('Missing required property')),
578+ alida: (json.containsKey("Alida") ? json["Alida"] : throw FormatException('Missing required property')),
579+ asteria: (json.containsKey("asteria") ? json["asteria"] : throw FormatException('Missing required property')),
580+ beriberic: (json.containsKey("beriberic") ? json["beriberic"] : throw FormatException('Missing required property')),
581+ edgebone: (json.containsKey("edgebone") ? json["edgebone"] : throw FormatException('Missing required property')),
582+ gastrodialysis: (json.containsKey("gastrodialysis") ? json["gastrodialysis"] : throw FormatException('Missing required property')),
583+ geographic: (json.containsKey("geographic") ? json["geographic"] : throw FormatException('Missing required property')),
584+ ictonyx: (json.containsKey("Ictonyx") ? json["Ictonyx"] : throw FormatException('Missing required property')),
585+ metrocele: (json.containsKey("metrocele") ? json["metrocele"] : throw FormatException('Missing required property')),
586+ misgraft: (json.containsKey("misgraft") ? json["misgraft"] : throw FormatException('Missing required property')),
587+ monteith: (json.containsKey("monteith") ? json["monteith"] : throw FormatException('Missing required property')),
588+ notcher: (json.containsKey("notcher") ? json["notcher"] : throw FormatException('Missing required property')),
589+ prorestriction: (json.containsKey("prorestriction") ? json["prorestriction"] : throw FormatException('Missing required property')),
590+ ramist: (json.containsKey("Ramist") ? json["Ramist"] : throw FormatException('Missing required property')),
591+ throatlet: (json.containsKey("throatlet") ? json["throatlet"] : throw FormatException('Missing required property')),
592+ unfair: (json.containsKey("unfair") ? json["unfair"] : throw FormatException('Missing required property')),
593+ unsynonymous: (json.containsKey("unsynonymous") ? json["unsynonymous"] : throw FormatException('Missing required property')),
594+ water: (json.containsKey("water") ? json["water"] : throw FormatException('Missing required property')),
595+ zestfully: (json.containsKey("zestfully") ? json["zestfully"] : throw FormatException('Missing required property')),
596+ zincic: (json.containsKey("zincic") ? json["zincic"] : throw FormatException('Missing required property')),
597597 );
598598
599599 Map<String, dynamic> toJson() => {
@@ -666,26 +666,26 @@ class ChytridiaceaeClass {
666666 });
667667
668668 factory ChytridiaceaeClass.fromJson(Map<String, dynamic> json) => ChytridiaceaeClass(
669- batidaceae: json["Batidaceae"],
670- brechites: json["Brechites"],
671- codespairer: json["codespairer"],
672- emery: json["Emery"],
673- enervative: json["enervative"],
674- excriminate: json["excriminate"],
675- goshenite: json["goshenite"],
676- grime: json["grime"],
677- gritten: json["gritten"],
678- hectorly: json["hectorly"],
679- intermediation: json["intermediation"],
680- meeterly: json["meeterly"],
681- narraganset: json["Narraganset"],
682- onymatic: json["onymatic"],
683- paddlecock: json["paddlecock"],
684- thana: json["thana"],
685- thornily: json["thornily"],
686- uckia: json["uckia"],
687- unmettle: json["unmettle"],
688- vorticellid: json["vorticellid"],
669+ batidaceae: (json.containsKey("Batidaceae") ? json["Batidaceae"] : throw FormatException('Missing required property')),
670+ brechites: (json.containsKey("Brechites") ? json["Brechites"] : throw FormatException('Missing required property')),
671+ codespairer: (json.containsKey("codespairer") ? json["codespairer"] : throw FormatException('Missing required property')),
672+ emery: (json.containsKey("Emery") ? json["Emery"] : throw FormatException('Missing required property')),
673+ enervative: (json.containsKey("enervative") ? json["enervative"] : throw FormatException('Missing required property')),
674+ excriminate: (json.containsKey("excriminate") ? json["excriminate"] : throw FormatException('Missing required property')),
675+ goshenite: (json.containsKey("goshenite") ? json["goshenite"] : throw FormatException('Missing required property')),
676+ grime: (json.containsKey("grime") ? json["grime"] : throw FormatException('Missing required property')),
677+ gritten: (json.containsKey("gritten") ? json["gritten"] : throw FormatException('Missing required property')),
678+ hectorly: (json.containsKey("hectorly") ? json["hectorly"] : throw FormatException('Missing required property')),
679+ intermediation: (json.containsKey("intermediation") ? json["intermediation"] : throw FormatException('Missing required property')),
680+ meeterly: (json.containsKey("meeterly") ? json["meeterly"] : throw FormatException('Missing required property')),
681+ narraganset: (json.containsKey("Narraganset") ? json["Narraganset"] : throw FormatException('Missing required property')),
682+ onymatic: (json.containsKey("onymatic") ? json["onymatic"] : throw FormatException('Missing required property')),
683+ paddlecock: (json.containsKey("paddlecock") ? json["paddlecock"] : throw FormatException('Missing required property')),
684+ thana: (json.containsKey("thana") ? json["thana"] : throw FormatException('Missing required property')),
685+ thornily: (json.containsKey("thornily") ? json["thornily"] : throw FormatException('Missing required property')),
686+ uckia: (json.containsKey("uckia") ? json["uckia"] : throw FormatException('Missing required property')),
687+ unmettle: (json.containsKey("unmettle") ? json["unmettle"] : throw FormatException('Missing required property')),
688+ vorticellid: (json.containsKey("vorticellid") ? json["vorticellid"] : throw FormatException('Missing required property')),
689689 );
690690
691691 Map<String, dynamic> toJson() => {
@@ -870,26 +870,26 @@ class GryphosaurusClass {
870870 });
871871
872872 factory GryphosaurusClass.fromJson(Map<String, dynamic> json) => GryphosaurusClass(
873- amissibility: json["amissibility"],
874- burushaski: json["Burushaski"],
875- citronin: json["citronin"],
876- coplaintiff: json["coplaintiff"],
877- disquisitionary: json["disquisitionary"],
878- enoplan: json["enoplan"],
879- faintness: json["faintness"],
880- hebetomy: json["hebetomy"],
881- islandry: json["islandry"],
882- lameduck: json["lameduck"],
883- overbattle: json["overbattle"],
884- overinterested: json["overinterested"],
885- phrenologic: json["phrenologic"],
886- rainband: json["rainband"],
887- shiningly: json["shiningly"],
888- stamineous: json["stamineous"],
889- subscapularis: json["subscapularis"],
890- tahami: json["Tahami"],
891- undaubed: json["undaubed"],
892- underntime: json["underntime"],
873+ amissibility: (json.containsKey("amissibility") ? json["amissibility"] : throw FormatException('Missing required property')),
874+ burushaski: (json.containsKey("Burushaski") ? json["Burushaski"] : throw FormatException('Missing required property')),
875+ citronin: (json.containsKey("citronin") ? json["citronin"] : throw FormatException('Missing required property')),
876+ coplaintiff: (json.containsKey("coplaintiff") ? json["coplaintiff"] : throw FormatException('Missing required property')),
877+ disquisitionary: (json.containsKey("disquisitionary") ? json["disquisitionary"] : throw FormatException('Missing required property')),
878+ enoplan: (json.containsKey("enoplan") ? json["enoplan"] : throw FormatException('Missing required property')),
879+ faintness: (json.containsKey("faintness") ? json["faintness"] : throw FormatException('Missing required property')),
880+ hebetomy: (json.containsKey("hebetomy") ? json["hebetomy"] : throw FormatException('Missing required property')),
881+ islandry: (json.containsKey("islandry") ? json["islandry"] : throw FormatException('Missing required property')),
882+ lameduck: (json.containsKey("lameduck") ? json["lameduck"] : throw FormatException('Missing required property')),
883+ overbattle: (json.containsKey("overbattle") ? json["overbattle"] : throw FormatException('Missing required property')),
884+ overinterested: (json.containsKey("overinterested") ? json["overinterested"] : throw FormatException('Missing required property')),
885+ phrenologic: (json.containsKey("phrenologic") ? json["phrenologic"] : throw FormatException('Missing required property')),
886+ rainband: (json.containsKey("rainband") ? json["rainband"] : throw FormatException('Missing required property')),
887+ shiningly: (json.containsKey("shiningly") ? json["shiningly"] : throw FormatException('Missing required property')),
888+ stamineous: (json.containsKey("stamineous") ? json["stamineous"] : throw FormatException('Missing required property')),
889+ subscapularis: (json.containsKey("subscapularis") ? json["subscapularis"] : throw FormatException('Missing required property')),
890+ tahami: (json.containsKey("Tahami") ? json["Tahami"] : throw FormatException('Missing required property')),
891+ undaubed: (json.containsKey("undaubed") ? json["undaubed"] : throw FormatException('Missing required property')),
892+ underntime: (json.containsKey("underntime") ? json["underntime"] : throw FormatException('Missing required property')),
893893 );
894894
895895 Map<String, dynamic> toJson() => {
@@ -1074,26 +1074,26 @@ class OskarClass {
10741074 });
10751075
10761076 factory OskarClass.fromJson(Map<String, dynamic> json) => OskarClass(
1077- acrobates: json["Acrobates"],
1078- beanshooter: json["beanshooter"],
1079- bearhound: json["bearhound"],
1080- cayuga: json["Cayuga"],
1081- guarneri: json["guarneri"],
1082- hypochondriacism: json["hypochondriacism"],
1083- indication: json["indication"],
1084- jaculative: json["jaculative"],
1085- nagana: json["nagana"],
1086- netherlandish: json["Netherlandish"],
1087- noctivagous: json["noctivagous"],
1088- nonphysiological: json["nonphysiological"],
1089- praxis: json["praxis"],
1090- provision: json["provision"],
1091- subterhuman: json["subterhuman"],
1092- sunlit: json["sunlit"],
1093- syncraniate: json["syncraniate"],
1094- teachment: json["teachment"],
1095- unmutinous: json["unmutinous"],
1096- unstoppable: json["unstoppable"],
1077+ acrobates: (json.containsKey("Acrobates") ? json["Acrobates"] : throw FormatException('Missing required property')),
1078+ beanshooter: (json.containsKey("beanshooter") ? json["beanshooter"] : throw FormatException('Missing required property')),
1079+ bearhound: (json.containsKey("bearhound") ? json["bearhound"] : throw FormatException('Missing required property')),
1080+ cayuga: (json.containsKey("Cayuga") ? json["Cayuga"] : throw FormatException('Missing required property')),
1081+ guarneri: (json.containsKey("guarneri") ? json["guarneri"] : throw FormatException('Missing required property')),
1082+ hypochondriacism: (json.containsKey("hypochondriacism") ? json["hypochondriacism"] : throw FormatException('Missing required property')),
1083+ indication: (json.containsKey("indication") ? json["indication"] : throw FormatException('Missing required property')),
1084+ jaculative: (json.containsKey("jaculative") ? json["jaculative"] : throw FormatException('Missing required property')),
1085+ nagana: (json.containsKey("nagana") ? json["nagana"] : throw FormatException('Missing required property')),
1086+ netherlandish: (json.containsKey("Netherlandish") ? json["Netherlandish"] : throw FormatException('Missing required property')),
1087+ noctivagous: (json.containsKey("noctivagous") ? json["noctivagous"] : throw FormatException('Missing required property')),
1088+ nonphysiological: (json.containsKey("nonphysiological") ? json["nonphysiological"] : throw FormatException('Missing required property')),
1089+ praxis: (json.containsKey("praxis") ? json["praxis"] : throw FormatException('Missing required property')),
1090+ provision: (json.containsKey("provision") ? json["provision"] : throw FormatException('Missing required property')),
1091+ subterhuman: (json.containsKey("subterhuman") ? json["subterhuman"] : throw FormatException('Missing required property')),
1092+ sunlit: (json.containsKey("sunlit") ? json["sunlit"] : throw FormatException('Missing required property')),
1093+ syncraniate: (json.containsKey("syncraniate") ? json["syncraniate"] : throw FormatException('Missing required property')),
1094+ teachment: (json.containsKey("teachment") ? json["teachment"] : throw FormatException('Missing required property')),
1095+ unmutinous: (json.containsKey("unmutinous") ? json["unmutinous"] : throw FormatException('Missing required property')),
1096+ unstoppable: (json.containsKey("unstoppable") ? json["unstoppable"] : throw FormatException('Missing required property')),
10971097 );
10981098
10991099 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/priority/combinations3.json

2 generated files · +284 −284
Mdartdefault / TopLevel.dart+142 −142
@@ -234,26 +234,26 @@ class JurorClass {
234234 });
235235
236236 factory JurorClass.fromJson(Map<String, dynamic> json) => JurorClass(
237- adipsy: json["adipsy"],
238- auxiliator: json["auxiliator"],
239- benda: json["benda"],
240- benjamin: json["benjamin"],
241- brandling: json["brandling"],
242- epicurishly: json["epicurishly"],
243- eremochaetous: json["eremochaetous"],
244- marten: json["marten"],
245- monocline: json["monocline"],
246- olea: json["Olea"],
247- palgat: json["palgat"],
248- pennyworth: json["pennyworth"],
249- pioury: json["pioury"],
250- pragmatistic: json["pragmatistic"],
251- stylelessness: json["stylelessness"],
252- systematical: json["systematical"],
253- thready: json["thready"],
254- uncontemporary: json["uncontemporary"],
255- uncouched: json["uncouched"],
256- uninhabitedness: json["uninhabitedness"],
237+ adipsy: (json.containsKey("adipsy") ? json["adipsy"] : throw FormatException('Missing required property')),
238+ auxiliator: (json.containsKey("auxiliator") ? json["auxiliator"] : throw FormatException('Missing required property')),
239+ benda: (json.containsKey("benda") ? json["benda"] : throw FormatException('Missing required property')),
240+ benjamin: (json.containsKey("benjamin") ? json["benjamin"] : throw FormatException('Missing required property')),
241+ brandling: (json.containsKey("brandling") ? json["brandling"] : throw FormatException('Missing required property')),
242+ epicurishly: (json.containsKey("epicurishly") ? json["epicurishly"] : throw FormatException('Missing required property')),
243+ eremochaetous: (json.containsKey("eremochaetous") ? json["eremochaetous"] : throw FormatException('Missing required property')),
244+ marten: (json.containsKey("marten") ? json["marten"] : throw FormatException('Missing required property')),
245+ monocline: (json.containsKey("monocline") ? json["monocline"] : throw FormatException('Missing required property')),
246+ olea: (json.containsKey("Olea") ? json["Olea"] : throw FormatException('Missing required property')),
247+ palgat: (json.containsKey("palgat") ? json["palgat"] : throw FormatException('Missing required property')),
248+ pennyworth: (json.containsKey("pennyworth") ? json["pennyworth"] : throw FormatException('Missing required property')),
249+ pioury: (json.containsKey("pioury") ? json["pioury"] : throw FormatException('Missing required property')),
250+ pragmatistic: (json.containsKey("pragmatistic") ? json["pragmatistic"] : throw FormatException('Missing required property')),
251+ stylelessness: (json.containsKey("stylelessness") ? json["stylelessness"] : throw FormatException('Missing required property')),
252+ systematical: (json.containsKey("systematical") ? json["systematical"] : throw FormatException('Missing required property')),
253+ thready: (json.containsKey("thready") ? json["thready"] : throw FormatException('Missing required property')),
254+ uncontemporary: (json.containsKey("uncontemporary") ? json["uncontemporary"] : throw FormatException('Missing required property')),
255+ uncouched: (json.containsKey("uncouched") ? json["uncouched"] : throw FormatException('Missing required property')),
256+ uninhabitedness: (json.containsKey("uninhabitedness") ? json["uninhabitedness"] : throw FormatException('Missing required property')),
257257 );
258258
259259 Map<String, dynamic> toJson() => {
@@ -326,26 +326,26 @@ class LadronismClass {
326326 });
327327
328328 factory LadronismClass.fromJson(Map<String, dynamic> json) => LadronismClass(
329- acclaimer: json["acclaimer"],
330- achree: json["achree"],
331- base: json["base"],
332- conundrumize: json["conundrumize"],
333- degerminator: json["degerminator"],
334- describable: json["describable"],
335- exasperatedly: json["exasperatedly"],
336- heroine: json["heroine"],
337- indazin: json["indazin"],
338- luteous: json["luteous"],
339- papular: json["papular"],
340- pritch: json["pritch"],
341- prodenia: json["Prodenia"],
342- seege: json["seege"],
343- shopgirl: json["shopgirl"],
344- tragedietta: json["tragedietta"],
345- unsparse: json["unsparse"],
346- uplook: json["uplook"],
347- vermiformis: json["vermiformis"],
348- whafabout: json["whafabout"],
329+ acclaimer: (json.containsKey("acclaimer") ? json["acclaimer"] : throw FormatException('Missing required property')),
330+ achree: (json.containsKey("achree") ? json["achree"] : throw FormatException('Missing required property')),
331+ base: (json.containsKey("base") ? json["base"] : throw FormatException('Missing required property')),
332+ conundrumize: (json.containsKey("conundrumize") ? json["conundrumize"] : throw FormatException('Missing required property')),
333+ degerminator: (json.containsKey("degerminator") ? json["degerminator"] : throw FormatException('Missing required property')),
334+ describable: (json.containsKey("describable") ? json["describable"] : throw FormatException('Missing required property')),
335+ exasperatedly: (json.containsKey("exasperatedly") ? json["exasperatedly"] : throw FormatException('Missing required property')),
336+ heroine: (json.containsKey("heroine") ? json["heroine"] : throw FormatException('Missing required property')),
337+ indazin: (json.containsKey("indazin") ? json["indazin"] : throw FormatException('Missing required property')),
338+ luteous: (json.containsKey("luteous") ? json["luteous"] : throw FormatException('Missing required property')),
339+ papular: (json.containsKey("papular") ? json["papular"] : throw FormatException('Missing required property')),
340+ pritch: (json.containsKey("pritch") ? json["pritch"] : throw FormatException('Missing required property')),
341+ prodenia: (json.containsKey("Prodenia") ? json["Prodenia"] : throw FormatException('Missing required property')),
342+ seege: (json.containsKey("seege") ? json["seege"] : throw FormatException('Missing required property')),
343+ shopgirl: (json.containsKey("shopgirl") ? json["shopgirl"] : throw FormatException('Missing required property')),
344+ tragedietta: (json.containsKey("tragedietta") ? json["tragedietta"] : throw FormatException('Missing required property')),
345+ unsparse: (json.containsKey("unsparse") ? json["unsparse"] : throw FormatException('Missing required property')),
346+ uplook: (json.containsKey("uplook") ? json["uplook"] : throw FormatException('Missing required property')),
347+ vermiformis: (json.containsKey("vermiformis") ? json["vermiformis"] : throw FormatException('Missing required property')),
348+ whafabout: (json.containsKey("whafabout") ? json["whafabout"] : throw FormatException('Missing required property')),
349349 );
350350
351351 Map<String, dynamic> toJson() => {
@@ -418,26 +418,26 @@ class LandlubberlyClass {
418418 });
419419
420420 factory LandlubberlyClass.fromJson(Map<String, dynamic> json) => LandlubberlyClass(
421- acropoleis: json["acropoleis"],
422- aminate: json["aminate"],
423- amyraldism: json["Amyraldism"],
424- bipenniform: json["bipenniform"],
425- bugre: json["bugre"],
426- calycule: json["calycule"],
427- caoutchouc: json["caoutchouc"],
428- disprover: json["disprover"],
429- fitroot: json["fitroot"],
430- fulgently: json["fulgently"],
431- kickup: json["kickup"],
432- laevoversion: json["laevoversion"],
433- moter: json["moter"],
434- objectivity: json["objectivity"],
435- posterity: json["posterity"],
436- postnuptial: json["postnuptial"],
437- precedentary: json["precedentary"],
438- saddling: json["saddling"],
439- subcurrent: json["subcurrent"],
440- unrecriminative: json["unrecriminative"],
421+ acropoleis: (json.containsKey("acropoleis") ? json["acropoleis"] : throw FormatException('Missing required property')),
422+ aminate: (json.containsKey("aminate") ? json["aminate"] : throw FormatException('Missing required property')),
423+ amyraldism: (json.containsKey("Amyraldism") ? json["Amyraldism"] : throw FormatException('Missing required property')),
424+ bipenniform: (json.containsKey("bipenniform") ? json["bipenniform"] : throw FormatException('Missing required property')),
425+ bugre: (json.containsKey("bugre") ? json["bugre"] : throw FormatException('Missing required property')),
426+ calycule: (json.containsKey("calycule") ? json["calycule"] : throw FormatException('Missing required property')),
427+ caoutchouc: (json.containsKey("caoutchouc") ? json["caoutchouc"] : throw FormatException('Missing required property')),
428+ disprover: (json.containsKey("disprover") ? json["disprover"] : throw FormatException('Missing required property')),
429+ fitroot: (json.containsKey("fitroot") ? json["fitroot"] : throw FormatException('Missing required property')),
430+ fulgently: (json.containsKey("fulgently") ? json["fulgently"] : throw FormatException('Missing required property')),
431+ kickup: (json.containsKey("kickup") ? json["kickup"] : throw FormatException('Missing required property')),
432+ laevoversion: (json.containsKey("laevoversion") ? json["laevoversion"] : throw FormatException('Missing required property')),
433+ moter: (json.containsKey("moter") ? json["moter"] : throw FormatException('Missing required property')),
434+ objectivity: (json.containsKey("objectivity") ? json["objectivity"] : throw FormatException('Missing required property')),
435+ posterity: (json.containsKey("posterity") ? json["posterity"] : throw FormatException('Missing required property')),
436+ postnuptial: (json.containsKey("postnuptial") ? json["postnuptial"] : throw FormatException('Missing required property')),
437+ precedentary: (json.containsKey("precedentary") ? json["precedentary"] : throw FormatException('Missing required property')),
438+ saddling: (json.containsKey("saddling") ? json["saddling"] : throw FormatException('Missing required property')),
439+ subcurrent: (json.containsKey("subcurrent") ? json["subcurrent"] : throw FormatException('Missing required property')),
440+ unrecriminative: (json.containsKey("unrecriminative") ? json["unrecriminative"] : throw FormatException('Missing required property')),
441441 );
442442
443443 Map<String, dynamic> toJson() => {
@@ -788,7 +788,7 @@ class MonaziteClass {
788788 chirotherium: json["Chirotherium"],
789789 disdiapason: json["disdiapason"],
790790 homocerc: json["homocerc"],
791- nonbookish: json["nonbookish"],
791+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
792792 );
793793
794794 Map<String, dynamic> toJson() => {
@@ -932,7 +932,7 @@ class Noncontributing {
932932 jolterhead: json["jolterhead"]?.toDouble(),
933933 sauternes: json["sauternes"],
934934 sparsely: json["sparsely"],
935- unrequested: json["unrequested"],
935+ unrequested: (json.containsKey("unrequested") ? json["unrequested"] : throw FormatException('Missing required property')),
936936 );
937937
938938 Map<String, dynamic> toJson() => {
@@ -990,26 +990,26 @@ class OccupationalistClass {
990990 });
991991
992992 factory OccupationalistClass.fromJson(Map<String, dynamic> json) => OccupationalistClass(
993- beholdable: json["beholdable"],
994- brotuliform: json["brotuliform"],
995- chimakum: json["Chimakum"],
996- doodler: json["doodler"],
997- emulsin: json["emulsin"],
998- fin: json["Fin"],
999- flourishing: json["flourishing"],
1000- flueless: json["flueless"],
1001- furtively: json["furtively"],
1002- gritter: json["gritter"],
1003- interwish: json["interwish"],
1004- monoxylic: json["monoxylic"],
1005- myristic: json["myristic"],
1006- nightwear: json["nightwear"],
1007- peruser: json["peruser"],
1008- theoastrological: json["theoastrological"],
1009- thumby: json["thumby"],
1010- tingitid: json["tingitid"],
1011- trailless: json["trailless"],
1012- unpocketed: json["unpocketed"],
993+ beholdable: (json.containsKey("beholdable") ? json["beholdable"] : throw FormatException('Missing required property')),
994+ brotuliform: (json.containsKey("brotuliform") ? json["brotuliform"] : throw FormatException('Missing required property')),
995+ chimakum: (json.containsKey("Chimakum") ? json["Chimakum"] : throw FormatException('Missing required property')),
996+ doodler: (json.containsKey("doodler") ? json["doodler"] : throw FormatException('Missing required property')),
997+ emulsin: (json.containsKey("emulsin") ? json["emulsin"] : throw FormatException('Missing required property')),
998+ fin: (json.containsKey("Fin") ? json["Fin"] : throw FormatException('Missing required property')),
999+ flourishing: (json.containsKey("flourishing") ? json["flourishing"] : throw FormatException('Missing required property')),
1000+ flueless: (json.containsKey("flueless") ? json["flueless"] : throw FormatException('Missing required property')),
1001+ furtively: (json.containsKey("furtively") ? json["furtively"] : throw FormatException('Missing required property')),
1002+ gritter: (json.containsKey("gritter") ? json["gritter"] : throw FormatException('Missing required property')),
1003+ interwish: (json.containsKey("interwish") ? json["interwish"] : throw FormatException('Missing required property')),
1004+ monoxylic: (json.containsKey("monoxylic") ? json["monoxylic"] : throw FormatException('Missing required property')),
1005+ myristic: (json.containsKey("myristic") ? json["myristic"] : throw FormatException('Missing required property')),
1006+ nightwear: (json.containsKey("nightwear") ? json["nightwear"] : throw FormatException('Missing required property')),
1007+ peruser: (json.containsKey("peruser") ? json["peruser"] : throw FormatException('Missing required property')),
1008+ theoastrological: (json.containsKey("theoastrological") ? json["theoastrological"] : throw FormatException('Missing required property')),
1009+ thumby: (json.containsKey("thumby") ? json["thumby"] : throw FormatException('Missing required property')),
1010+ tingitid: (json.containsKey("tingitid") ? json["tingitid"] : throw FormatException('Missing required property')),
1011+ trailless: (json.containsKey("trailless") ? json["trailless"] : throw FormatException('Missing required property')),
1012+ unpocketed: (json.containsKey("unpocketed") ? json["unpocketed"] : throw FormatException('Missing required property')),
10131013 );
10141014
10151015 Map<String, dynamic> toJson() => {
@@ -1082,26 +1082,26 @@ class OutrivalClass {
10821082 });
10831083
10841084 factory OutrivalClass.fromJson(Map<String, dynamic> json) => OutrivalClass(
1085- adroitly: json["adroitly"],
1086- bridehood: json["bridehood"],
1087- castoroides: json["Castoroides"],
1088- czechoslovak: json["Czechoslovak"],
1089- diagenesis: json["diagenesis"],
1090- dihexahedron: json["dihexahedron"],
1091- dopester: json["dopester"],
1092- eumerism: json["eumerism"],
1093- flyness: json["flyness"],
1094- fouler: json["fouler"],
1095- laudanosine: json["laudanosine"],
1096- lingulidae: json["Lingulidae"],
1097- minutary: json["minutary"],
1098- mitra: json["mitra"],
1099- opisthorchiasis: json["opisthorchiasis"],
1100- pensively: json["pensively"],
1101- pubigerous: json["pubigerous"],
1102- rebellious: json["rebellious"],
1103- recodify: json["recodify"],
1104- unpaced: json["unpaced"],
1085+ adroitly: (json.containsKey("adroitly") ? json["adroitly"] : throw FormatException('Missing required property')),
1086+ bridehood: (json.containsKey("bridehood") ? json["bridehood"] : throw FormatException('Missing required property')),
1087+ castoroides: (json.containsKey("Castoroides") ? json["Castoroides"] : throw FormatException('Missing required property')),
1088+ czechoslovak: (json.containsKey("Czechoslovak") ? json["Czechoslovak"] : throw FormatException('Missing required property')),
1089+ diagenesis: (json.containsKey("diagenesis") ? json["diagenesis"] : throw FormatException('Missing required property')),
1090+ dihexahedron: (json.containsKey("dihexahedron") ? json["dihexahedron"] : throw FormatException('Missing required property')),
1091+ dopester: (json.containsKey("dopester") ? json["dopester"] : throw FormatException('Missing required property')),
1092+ eumerism: (json.containsKey("eumerism") ? json["eumerism"] : throw FormatException('Missing required property')),
1093+ flyness: (json.containsKey("flyness") ? json["flyness"] : throw FormatException('Missing required property')),
1094+ fouler: (json.containsKey("fouler") ? json["fouler"] : throw FormatException('Missing required property')),
1095+ laudanosine: (json.containsKey("laudanosine") ? json["laudanosine"] : throw FormatException('Missing required property')),
1096+ lingulidae: (json.containsKey("Lingulidae") ? json["Lingulidae"] : throw FormatException('Missing required property')),
1097+ minutary: (json.containsKey("minutary") ? json["minutary"] : throw FormatException('Missing required property')),
1098+ mitra: (json.containsKey("mitra") ? json["mitra"] : throw FormatException('Missing required property')),
1099+ opisthorchiasis: (json.containsKey("opisthorchiasis") ? json["opisthorchiasis"] : throw FormatException('Missing required property')),
1100+ pensively: (json.containsKey("pensively") ? json["pensively"] : throw FormatException('Missing required property')),
1101+ pubigerous: (json.containsKey("pubigerous") ? json["pubigerous"] : throw FormatException('Missing required property')),
1102+ rebellious: (json.containsKey("rebellious") ? json["rebellious"] : throw FormatException('Missing required property')),
1103+ recodify: (json.containsKey("recodify") ? json["recodify"] : throw FormatException('Missing required property')),
1104+ unpaced: (json.containsKey("unpaced") ? json["unpaced"] : throw FormatException('Missing required property')),
11051105 );
11061106
11071107 Map<String, dynamic> toJson() => {
@@ -1398,26 +1398,26 @@ class PotwhiskyClass {
13981398 });
13991399
14001400 factory PotwhiskyClass.fromJson(Map<String, dynamic> json) => PotwhiskyClass(
1401- arciform: json["arciform"],
1402- cresolin: json["cresolin"],
1403- disheartener: json["disheartener"],
1404- disproportionable: json["disproportionable"],
1405- euchorda: json["Euchorda"],
1406- ferryway: json["ferryway"],
1407- filamentiferous: json["filamentiferous"],
1408- flemish: json["flemish"],
1409- forgainst: json["forgainst"],
1410- grainering: json["grainering"],
1411- irrevoluble: json["irrevoluble"],
1412- kindredship: json["kindredship"],
1413- pinguitudinous: json["pinguitudinous"],
1414- simpletonic: json["simpletonic"],
1415- singsong: json["singsong"],
1416- submergement: json["submergement"],
1417- supraoesophagal: json["supraoesophagal"],
1418- thrashel: json["thrashel"],
1419- tyremesis: json["tyremesis"],
1420- yoruba: json["Yoruba"],
1401+ arciform: (json.containsKey("arciform") ? json["arciform"] : throw FormatException('Missing required property')),
1402+ cresolin: (json.containsKey("cresolin") ? json["cresolin"] : throw FormatException('Missing required property')),
1403+ disheartener: (json.containsKey("disheartener") ? json["disheartener"] : throw FormatException('Missing required property')),
1404+ disproportionable: (json.containsKey("disproportionable") ? json["disproportionable"] : throw FormatException('Missing required property')),
1405+ euchorda: (json.containsKey("Euchorda") ? json["Euchorda"] : throw FormatException('Missing required property')),
1406+ ferryway: (json.containsKey("ferryway") ? json["ferryway"] : throw FormatException('Missing required property')),
1407+ filamentiferous: (json.containsKey("filamentiferous") ? json["filamentiferous"] : throw FormatException('Missing required property')),
1408+ flemish: (json.containsKey("flemish") ? json["flemish"] : throw FormatException('Missing required property')),
1409+ forgainst: (json.containsKey("forgainst") ? json["forgainst"] : throw FormatException('Missing required property')),
1410+ grainering: (json.containsKey("grainering") ? json["grainering"] : throw FormatException('Missing required property')),
1411+ irrevoluble: (json.containsKey("irrevoluble") ? json["irrevoluble"] : throw FormatException('Missing required property')),
1412+ kindredship: (json.containsKey("kindredship") ? json["kindredship"] : throw FormatException('Missing required property')),
1413+ pinguitudinous: (json.containsKey("pinguitudinous") ? json["pinguitudinous"] : throw FormatException('Missing required property')),
1414+ simpletonic: (json.containsKey("simpletonic") ? json["simpletonic"] : throw FormatException('Missing required property')),
1415+ singsong: (json.containsKey("singsong") ? json["singsong"] : throw FormatException('Missing required property')),
1416+ submergement: (json.containsKey("submergement") ? json["submergement"] : throw FormatException('Missing required property')),
1417+ supraoesophagal: (json.containsKey("supraoesophagal") ? json["supraoesophagal"] : throw FormatException('Missing required property')),
1418+ thrashel: (json.containsKey("thrashel") ? json["thrashel"] : throw FormatException('Missing required property')),
1419+ tyremesis: (json.containsKey("tyremesis") ? json["tyremesis"] : throw FormatException('Missing required property')),
1420+ yoruba: (json.containsKey("Yoruba") ? json["Yoruba"] : throw FormatException('Missing required property')),
14211421 );
14221422
14231423 Map<String, dynamic> toJson() => {
@@ -1490,26 +1490,26 @@ class PrefreshmanClass {
14901490 });
14911491
14921492 factory PrefreshmanClass.fromJson(Map<String, dynamic> json) => PrefreshmanClass(
1493- azorubine: json["azorubine"],
1494- choroiditis: json["choroiditis"],
1495- coagulatory: json["coagulatory"],
1496- cyclorama: json["cyclorama"],
1497- dolphus: json["Dolphus"],
1498- duckhearted: json["duckhearted"],
1499- ficus: json["Ficus"],
1500- gemaric: json["Gemaric"],
1501- jugation: json["jugation"],
1502- myoliposis: json["myoliposis"],
1503- nonnomination: json["nonnomination"],
1504- palay: json["palay"],
1505- pentactinal: json["pentactinal"],
1506- phaet: json["Phaet"],
1507- piquant: json["piquant"],
1508- registration: json["registration"],
1509- remancipation: json["remancipation"],
1510- scutatiform: json["scutatiform"],
1511- theodolite: json["theodolite"],
1512- underward: json["underward"],
1493+ azorubine: (json.containsKey("azorubine") ? json["azorubine"] : throw FormatException('Missing required property')),
1494+ choroiditis: (json.containsKey("choroiditis") ? json["choroiditis"] : throw FormatException('Missing required property')),
1495+ coagulatory: (json.containsKey("coagulatory") ? json["coagulatory"] : throw FormatException('Missing required property')),
1496+ cyclorama: (json.containsKey("cyclorama") ? json["cyclorama"] : throw FormatException('Missing required property')),
1497+ dolphus: (json.containsKey("Dolphus") ? json["Dolphus"] : throw FormatException('Missing required property')),
1498+ duckhearted: (json.containsKey("duckhearted") ? json["duckhearted"] : throw FormatException('Missing required property')),
1499+ ficus: (json.containsKey("Ficus") ? json["Ficus"] : throw FormatException('Missing required property')),
1500+ gemaric: (json.containsKey("Gemaric") ? json["Gemaric"] : throw FormatException('Missing required property')),
1501+ jugation: (json.containsKey("jugation") ? json["jugation"] : throw FormatException('Missing required property')),
1502+ myoliposis: (json.containsKey("myoliposis") ? json["myoliposis"] : throw FormatException('Missing required property')),
1503+ nonnomination: (json.containsKey("nonnomination") ? json["nonnomination"] : throw FormatException('Missing required property')),
1504+ palay: (json.containsKey("palay") ? json["palay"] : throw FormatException('Missing required property')),
1505+ pentactinal: (json.containsKey("pentactinal") ? json["pentactinal"] : throw FormatException('Missing required property')),
1506+ phaet: (json.containsKey("Phaet") ? json["Phaet"] : throw FormatException('Missing required property')),
1507+ piquant: (json.containsKey("piquant") ? json["piquant"] : throw FormatException('Missing required property')),
1508+ registration: (json.containsKey("registration") ? json["registration"] : throw FormatException('Missing required property')),
1509+ remancipation: (json.containsKey("remancipation") ? json["remancipation"] : throw FormatException('Missing required property')),
1510+ scutatiform: (json.containsKey("scutatiform") ? json["scutatiform"] : throw FormatException('Missing required property')),
1511+ theodolite: (json.containsKey("theodolite") ? json["theodolite"] : throw FormatException('Missing required property')),
1512+ underward: (json.containsKey("underward") ? json["underward"] : throw FormatException('Missing required property')),
15131513 );
15141514
15151515 Map<String, dynamic> toJson() => {
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+142 −142
@@ -234,26 +234,26 @@ class JurorClass {
234234 });
235235
236236 factory JurorClass.fromJson(Map<String, dynamic> json) => JurorClass(
237- adipsy: json["adipsy"],
238- auxiliator: json["auxiliator"],
239- benda: json["benda"],
240- benjamin: json["benjamin"],
241- brandling: json["brandling"],
242- epicurishly: json["epicurishly"],
243- eremochaetous: json["eremochaetous"],
244- marten: json["marten"],
245- monocline: json["monocline"],
246- olea: json["Olea"],
247- palgat: json["palgat"],
248- pennyworth: json["pennyworth"],
249- pioury: json["pioury"],
250- pragmatistic: json["pragmatistic"],
251- stylelessness: json["stylelessness"],
252- systematical: json["systematical"],
253- thready: json["thready"],
254- uncontemporary: json["uncontemporary"],
255- uncouched: json["uncouched"],
256- uninhabitedness: json["uninhabitedness"],
237+ adipsy: (json.containsKey("adipsy") ? json["adipsy"] : throw FormatException('Missing required property')),
238+ auxiliator: (json.containsKey("auxiliator") ? json["auxiliator"] : throw FormatException('Missing required property')),
239+ benda: (json.containsKey("benda") ? json["benda"] : throw FormatException('Missing required property')),
240+ benjamin: (json.containsKey("benjamin") ? json["benjamin"] : throw FormatException('Missing required property')),
241+ brandling: (json.containsKey("brandling") ? json["brandling"] : throw FormatException('Missing required property')),
242+ epicurishly: (json.containsKey("epicurishly") ? json["epicurishly"] : throw FormatException('Missing required property')),
243+ eremochaetous: (json.containsKey("eremochaetous") ? json["eremochaetous"] : throw FormatException('Missing required property')),
244+ marten: (json.containsKey("marten") ? json["marten"] : throw FormatException('Missing required property')),
245+ monocline: (json.containsKey("monocline") ? json["monocline"] : throw FormatException('Missing required property')),
246+ olea: (json.containsKey("Olea") ? json["Olea"] : throw FormatException('Missing required property')),
247+ palgat: (json.containsKey("palgat") ? json["palgat"] : throw FormatException('Missing required property')),
248+ pennyworth: (json.containsKey("pennyworth") ? json["pennyworth"] : throw FormatException('Missing required property')),
249+ pioury: (json.containsKey("pioury") ? json["pioury"] : throw FormatException('Missing required property')),
250+ pragmatistic: (json.containsKey("pragmatistic") ? json["pragmatistic"] : throw FormatException('Missing required property')),
251+ stylelessness: (json.containsKey("stylelessness") ? json["stylelessness"] : throw FormatException('Missing required property')),
252+ systematical: (json.containsKey("systematical") ? json["systematical"] : throw FormatException('Missing required property')),
253+ thready: (json.containsKey("thready") ? json["thready"] : throw FormatException('Missing required property')),
254+ uncontemporary: (json.containsKey("uncontemporary") ? json["uncontemporary"] : throw FormatException('Missing required property')),
255+ uncouched: (json.containsKey("uncouched") ? json["uncouched"] : throw FormatException('Missing required property')),
256+ uninhabitedness: (json.containsKey("uninhabitedness") ? json["uninhabitedness"] : throw FormatException('Missing required property')),
257257 );
258258
259259 Map<String, dynamic> toJson() => {
@@ -326,26 +326,26 @@ class LadronismClass {
326326 });
327327
328328 factory LadronismClass.fromJson(Map<String, dynamic> json) => LadronismClass(
329- acclaimer: json["acclaimer"],
330- achree: json["achree"],
331- base: json["base"],
332- conundrumize: json["conundrumize"],
333- degerminator: json["degerminator"],
334- describable: json["describable"],
335- exasperatedly: json["exasperatedly"],
336- heroine: json["heroine"],
337- indazin: json["indazin"],
338- luteous: json["luteous"],
339- papular: json["papular"],
340- pritch: json["pritch"],
341- prodenia: json["Prodenia"],
342- seege: json["seege"],
343- shopgirl: json["shopgirl"],
344- tragedietta: json["tragedietta"],
345- unsparse: json["unsparse"],
346- uplook: json["uplook"],
347- vermiformis: json["vermiformis"],
348- whafabout: json["whafabout"],
329+ acclaimer: (json.containsKey("acclaimer") ? json["acclaimer"] : throw FormatException('Missing required property')),
330+ achree: (json.containsKey("achree") ? json["achree"] : throw FormatException('Missing required property')),
331+ base: (json.containsKey("base") ? json["base"] : throw FormatException('Missing required property')),
332+ conundrumize: (json.containsKey("conundrumize") ? json["conundrumize"] : throw FormatException('Missing required property')),
333+ degerminator: (json.containsKey("degerminator") ? json["degerminator"] : throw FormatException('Missing required property')),
334+ describable: (json.containsKey("describable") ? json["describable"] : throw FormatException('Missing required property')),
335+ exasperatedly: (json.containsKey("exasperatedly") ? json["exasperatedly"] : throw FormatException('Missing required property')),
336+ heroine: (json.containsKey("heroine") ? json["heroine"] : throw FormatException('Missing required property')),
337+ indazin: (json.containsKey("indazin") ? json["indazin"] : throw FormatException('Missing required property')),
338+ luteous: (json.containsKey("luteous") ? json["luteous"] : throw FormatException('Missing required property')),
339+ papular: (json.containsKey("papular") ? json["papular"] : throw FormatException('Missing required property')),
340+ pritch: (json.containsKey("pritch") ? json["pritch"] : throw FormatException('Missing required property')),
341+ prodenia: (json.containsKey("Prodenia") ? json["Prodenia"] : throw FormatException('Missing required property')),
342+ seege: (json.containsKey("seege") ? json["seege"] : throw FormatException('Missing required property')),
343+ shopgirl: (json.containsKey("shopgirl") ? json["shopgirl"] : throw FormatException('Missing required property')),
344+ tragedietta: (json.containsKey("tragedietta") ? json["tragedietta"] : throw FormatException('Missing required property')),
345+ unsparse: (json.containsKey("unsparse") ? json["unsparse"] : throw FormatException('Missing required property')),
346+ uplook: (json.containsKey("uplook") ? json["uplook"] : throw FormatException('Missing required property')),
347+ vermiformis: (json.containsKey("vermiformis") ? json["vermiformis"] : throw FormatException('Missing required property')),
348+ whafabout: (json.containsKey("whafabout") ? json["whafabout"] : throw FormatException('Missing required property')),
349349 );
350350
351351 Map<String, dynamic> toJson() => {
@@ -418,26 +418,26 @@ class LandlubberlyClass {
418418 });
419419
420420 factory LandlubberlyClass.fromJson(Map<String, dynamic> json) => LandlubberlyClass(
421- acropoleis: json["acropoleis"],
422- aminate: json["aminate"],
423- amyraldism: json["Amyraldism"],
424- bipenniform: json["bipenniform"],
425- bugre: json["bugre"],
426- calycule: json["calycule"],
427- caoutchouc: json["caoutchouc"],
428- disprover: json["disprover"],
429- fitroot: json["fitroot"],
430- fulgently: json["fulgently"],
431- kickup: json["kickup"],
432- laevoversion: json["laevoversion"],
433- moter: json["moter"],
434- objectivity: json["objectivity"],
435- posterity: json["posterity"],
436- postnuptial: json["postnuptial"],
437- precedentary: json["precedentary"],
438- saddling: json["saddling"],
439- subcurrent: json["subcurrent"],
440- unrecriminative: json["unrecriminative"],
421+ acropoleis: (json.containsKey("acropoleis") ? json["acropoleis"] : throw FormatException('Missing required property')),
422+ aminate: (json.containsKey("aminate") ? json["aminate"] : throw FormatException('Missing required property')),
423+ amyraldism: (json.containsKey("Amyraldism") ? json["Amyraldism"] : throw FormatException('Missing required property')),
424+ bipenniform: (json.containsKey("bipenniform") ? json["bipenniform"] : throw FormatException('Missing required property')),
425+ bugre: (json.containsKey("bugre") ? json["bugre"] : throw FormatException('Missing required property')),
426+ calycule: (json.containsKey("calycule") ? json["calycule"] : throw FormatException('Missing required property')),
427+ caoutchouc: (json.containsKey("caoutchouc") ? json["caoutchouc"] : throw FormatException('Missing required property')),
428+ disprover: (json.containsKey("disprover") ? json["disprover"] : throw FormatException('Missing required property')),
429+ fitroot: (json.containsKey("fitroot") ? json["fitroot"] : throw FormatException('Missing required property')),
430+ fulgently: (json.containsKey("fulgently") ? json["fulgently"] : throw FormatException('Missing required property')),
431+ kickup: (json.containsKey("kickup") ? json["kickup"] : throw FormatException('Missing required property')),
432+ laevoversion: (json.containsKey("laevoversion") ? json["laevoversion"] : throw FormatException('Missing required property')),
433+ moter: (json.containsKey("moter") ? json["moter"] : throw FormatException('Missing required property')),
434+ objectivity: (json.containsKey("objectivity") ? json["objectivity"] : throw FormatException('Missing required property')),
435+ posterity: (json.containsKey("posterity") ? json["posterity"] : throw FormatException('Missing required property')),
436+ postnuptial: (json.containsKey("postnuptial") ? json["postnuptial"] : throw FormatException('Missing required property')),
437+ precedentary: (json.containsKey("precedentary") ? json["precedentary"] : throw FormatException('Missing required property')),
438+ saddling: (json.containsKey("saddling") ? json["saddling"] : throw FormatException('Missing required property')),
439+ subcurrent: (json.containsKey("subcurrent") ? json["subcurrent"] : throw FormatException('Missing required property')),
440+ unrecriminative: (json.containsKey("unrecriminative") ? json["unrecriminative"] : throw FormatException('Missing required property')),
441441 );
442442
443443 Map<String, dynamic> toJson() => {
@@ -788,7 +788,7 @@ class MonaziteClass {
788788 chirotherium: json["Chirotherium"],
789789 disdiapason: json["disdiapason"],
790790 homocerc: json["homocerc"],
791- nonbookish: json["nonbookish"],
791+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
792792 );
793793
794794 Map<String, dynamic> toJson() => {
@@ -932,7 +932,7 @@ class Noncontributing {
932932 jolterhead: json["jolterhead"]?.toDouble(),
933933 sauternes: json["sauternes"],
934934 sparsely: json["sparsely"],
935- unrequested: json["unrequested"],
935+ unrequested: (json.containsKey("unrequested") ? json["unrequested"] : throw FormatException('Missing required property')),
936936 );
937937
938938 Map<String, dynamic> toJson() => {
@@ -990,26 +990,26 @@ class OccupationalistClass {
990990 });
991991
992992 factory OccupationalistClass.fromJson(Map<String, dynamic> json) => OccupationalistClass(
993- beholdable: json["beholdable"],
994- brotuliform: json["brotuliform"],
995- chimakum: json["Chimakum"],
996- doodler: json["doodler"],
997- emulsin: json["emulsin"],
998- fin: json["Fin"],
999- flourishing: json["flourishing"],
1000- flueless: json["flueless"],
1001- furtively: json["furtively"],
1002- gritter: json["gritter"],
1003- interwish: json["interwish"],
1004- monoxylic: json["monoxylic"],
1005- myristic: json["myristic"],
1006- nightwear: json["nightwear"],
1007- peruser: json["peruser"],
1008- theoastrological: json["theoastrological"],
1009- thumby: json["thumby"],
1010- tingitid: json["tingitid"],
1011- trailless: json["trailless"],
1012- unpocketed: json["unpocketed"],
993+ beholdable: (json.containsKey("beholdable") ? json["beholdable"] : throw FormatException('Missing required property')),
994+ brotuliform: (json.containsKey("brotuliform") ? json["brotuliform"] : throw FormatException('Missing required property')),
995+ chimakum: (json.containsKey("Chimakum") ? json["Chimakum"] : throw FormatException('Missing required property')),
996+ doodler: (json.containsKey("doodler") ? json["doodler"] : throw FormatException('Missing required property')),
997+ emulsin: (json.containsKey("emulsin") ? json["emulsin"] : throw FormatException('Missing required property')),
998+ fin: (json.containsKey("Fin") ? json["Fin"] : throw FormatException('Missing required property')),
999+ flourishing: (json.containsKey("flourishing") ? json["flourishing"] : throw FormatException('Missing required property')),
1000+ flueless: (json.containsKey("flueless") ? json["flueless"] : throw FormatException('Missing required property')),
1001+ furtively: (json.containsKey("furtively") ? json["furtively"] : throw FormatException('Missing required property')),
1002+ gritter: (json.containsKey("gritter") ? json["gritter"] : throw FormatException('Missing required property')),
1003+ interwish: (json.containsKey("interwish") ? json["interwish"] : throw FormatException('Missing required property')),
1004+ monoxylic: (json.containsKey("monoxylic") ? json["monoxylic"] : throw FormatException('Missing required property')),
1005+ myristic: (json.containsKey("myristic") ? json["myristic"] : throw FormatException('Missing required property')),
1006+ nightwear: (json.containsKey("nightwear") ? json["nightwear"] : throw FormatException('Missing required property')),
1007+ peruser: (json.containsKey("peruser") ? json["peruser"] : throw FormatException('Missing required property')),
1008+ theoastrological: (json.containsKey("theoastrological") ? json["theoastrological"] : throw FormatException('Missing required property')),
1009+ thumby: (json.containsKey("thumby") ? json["thumby"] : throw FormatException('Missing required property')),
1010+ tingitid: (json.containsKey("tingitid") ? json["tingitid"] : throw FormatException('Missing required property')),
1011+ trailless: (json.containsKey("trailless") ? json["trailless"] : throw FormatException('Missing required property')),
1012+ unpocketed: (json.containsKey("unpocketed") ? json["unpocketed"] : throw FormatException('Missing required property')),
10131013 );
10141014
10151015 Map<String, dynamic> toJson() => {
@@ -1082,26 +1082,26 @@ class OutrivalClass {
10821082 });
10831083
10841084 factory OutrivalClass.fromJson(Map<String, dynamic> json) => OutrivalClass(
1085- adroitly: json["adroitly"],
1086- bridehood: json["bridehood"],
1087- castoroides: json["Castoroides"],
1088- czechoslovak: json["Czechoslovak"],
1089- diagenesis: json["diagenesis"],
1090- dihexahedron: json["dihexahedron"],
1091- dopester: json["dopester"],
1092- eumerism: json["eumerism"],
1093- flyness: json["flyness"],
1094- fouler: json["fouler"],
1095- laudanosine: json["laudanosine"],
1096- lingulidae: json["Lingulidae"],
1097- minutary: json["minutary"],
1098- mitra: json["mitra"],
1099- opisthorchiasis: json["opisthorchiasis"],
1100- pensively: json["pensively"],
1101- pubigerous: json["pubigerous"],
1102- rebellious: json["rebellious"],
1103- recodify: json["recodify"],
1104- unpaced: json["unpaced"],
1085+ adroitly: (json.containsKey("adroitly") ? json["adroitly"] : throw FormatException('Missing required property')),
1086+ bridehood: (json.containsKey("bridehood") ? json["bridehood"] : throw FormatException('Missing required property')),
1087+ castoroides: (json.containsKey("Castoroides") ? json["Castoroides"] : throw FormatException('Missing required property')),
1088+ czechoslovak: (json.containsKey("Czechoslovak") ? json["Czechoslovak"] : throw FormatException('Missing required property')),
1089+ diagenesis: (json.containsKey("diagenesis") ? json["diagenesis"] : throw FormatException('Missing required property')),
1090+ dihexahedron: (json.containsKey("dihexahedron") ? json["dihexahedron"] : throw FormatException('Missing required property')),
1091+ dopester: (json.containsKey("dopester") ? json["dopester"] : throw FormatException('Missing required property')),
1092+ eumerism: (json.containsKey("eumerism") ? json["eumerism"] : throw FormatException('Missing required property')),
1093+ flyness: (json.containsKey("flyness") ? json["flyness"] : throw FormatException('Missing required property')),
1094+ fouler: (json.containsKey("fouler") ? json["fouler"] : throw FormatException('Missing required property')),
1095+ laudanosine: (json.containsKey("laudanosine") ? json["laudanosine"] : throw FormatException('Missing required property')),
1096+ lingulidae: (json.containsKey("Lingulidae") ? json["Lingulidae"] : throw FormatException('Missing required property')),
1097+ minutary: (json.containsKey("minutary") ? json["minutary"] : throw FormatException('Missing required property')),
1098+ mitra: (json.containsKey("mitra") ? json["mitra"] : throw FormatException('Missing required property')),
1099+ opisthorchiasis: (json.containsKey("opisthorchiasis") ? json["opisthorchiasis"] : throw FormatException('Missing required property')),
1100+ pensively: (json.containsKey("pensively") ? json["pensively"] : throw FormatException('Missing required property')),
1101+ pubigerous: (json.containsKey("pubigerous") ? json["pubigerous"] : throw FormatException('Missing required property')),
1102+ rebellious: (json.containsKey("rebellious") ? json["rebellious"] : throw FormatException('Missing required property')),
1103+ recodify: (json.containsKey("recodify") ? json["recodify"] : throw FormatException('Missing required property')),
1104+ unpaced: (json.containsKey("unpaced") ? json["unpaced"] : throw FormatException('Missing required property')),
11051105 );
11061106
11071107 Map<String, dynamic> toJson() => {
@@ -1398,26 +1398,26 @@ class PotwhiskyClass {
13981398 });
13991399
14001400 factory PotwhiskyClass.fromJson(Map<String, dynamic> json) => PotwhiskyClass(
1401- arciform: json["arciform"],
1402- cresolin: json["cresolin"],
1403- disheartener: json["disheartener"],
1404- disproportionable: json["disproportionable"],
1405- euchorda: json["Euchorda"],
1406- ferryway: json["ferryway"],
1407- filamentiferous: json["filamentiferous"],
1408- flemish: json["flemish"],
1409- forgainst: json["forgainst"],
1410- grainering: json["grainering"],
1411- irrevoluble: json["irrevoluble"],
1412- kindredship: json["kindredship"],
1413- pinguitudinous: json["pinguitudinous"],
1414- simpletonic: json["simpletonic"],
1415- singsong: json["singsong"],
1416- submergement: json["submergement"],
1417- supraoesophagal: json["supraoesophagal"],
1418- thrashel: json["thrashel"],
1419- tyremesis: json["tyremesis"],
1420- yoruba: json["Yoruba"],
1401+ arciform: (json.containsKey("arciform") ? json["arciform"] : throw FormatException('Missing required property')),
1402+ cresolin: (json.containsKey("cresolin") ? json["cresolin"] : throw FormatException('Missing required property')),
1403+ disheartener: (json.containsKey("disheartener") ? json["disheartener"] : throw FormatException('Missing required property')),
1404+ disproportionable: (json.containsKey("disproportionable") ? json["disproportionable"] : throw FormatException('Missing required property')),
1405+ euchorda: (json.containsKey("Euchorda") ? json["Euchorda"] : throw FormatException('Missing required property')),
1406+ ferryway: (json.containsKey("ferryway") ? json["ferryway"] : throw FormatException('Missing required property')),
1407+ filamentiferous: (json.containsKey("filamentiferous") ? json["filamentiferous"] : throw FormatException('Missing required property')),
1408+ flemish: (json.containsKey("flemish") ? json["flemish"] : throw FormatException('Missing required property')),
1409+ forgainst: (json.containsKey("forgainst") ? json["forgainst"] : throw FormatException('Missing required property')),
1410+ grainering: (json.containsKey("grainering") ? json["grainering"] : throw FormatException('Missing required property')),
1411+ irrevoluble: (json.containsKey("irrevoluble") ? json["irrevoluble"] : throw FormatException('Missing required property')),
1412+ kindredship: (json.containsKey("kindredship") ? json["kindredship"] : throw FormatException('Missing required property')),
1413+ pinguitudinous: (json.containsKey("pinguitudinous") ? json["pinguitudinous"] : throw FormatException('Missing required property')),
1414+ simpletonic: (json.containsKey("simpletonic") ? json["simpletonic"] : throw FormatException('Missing required property')),
1415+ singsong: (json.containsKey("singsong") ? json["singsong"] : throw FormatException('Missing required property')),
1416+ submergement: (json.containsKey("submergement") ? json["submergement"] : throw FormatException('Missing required property')),
1417+ supraoesophagal: (json.containsKey("supraoesophagal") ? json["supraoesophagal"] : throw FormatException('Missing required property')),
1418+ thrashel: (json.containsKey("thrashel") ? json["thrashel"] : throw FormatException('Missing required property')),
1419+ tyremesis: (json.containsKey("tyremesis") ? json["tyremesis"] : throw FormatException('Missing required property')),
1420+ yoruba: (json.containsKey("Yoruba") ? json["Yoruba"] : throw FormatException('Missing required property')),
14211421 );
14221422
14231423 Map<String, dynamic> toJson() => {
@@ -1490,26 +1490,26 @@ class PrefreshmanClass {
14901490 });
14911491
14921492 factory PrefreshmanClass.fromJson(Map<String, dynamic> json) => PrefreshmanClass(
1493- azorubine: json["azorubine"],
1494- choroiditis: json["choroiditis"],
1495- coagulatory: json["coagulatory"],
1496- cyclorama: json["cyclorama"],
1497- dolphus: json["Dolphus"],
1498- duckhearted: json["duckhearted"],
1499- ficus: json["Ficus"],
1500- gemaric: json["Gemaric"],
1501- jugation: json["jugation"],
1502- myoliposis: json["myoliposis"],
1503- nonnomination: json["nonnomination"],
1504- palay: json["palay"],
1505- pentactinal: json["pentactinal"],
1506- phaet: json["Phaet"],
1507- piquant: json["piquant"],
1508- registration: json["registration"],
1509- remancipation: json["remancipation"],
1510- scutatiform: json["scutatiform"],
1511- theodolite: json["theodolite"],
1512- underward: json["underward"],
1493+ azorubine: (json.containsKey("azorubine") ? json["azorubine"] : throw FormatException('Missing required property')),
1494+ choroiditis: (json.containsKey("choroiditis") ? json["choroiditis"] : throw FormatException('Missing required property')),
1495+ coagulatory: (json.containsKey("coagulatory") ? json["coagulatory"] : throw FormatException('Missing required property')),
1496+ cyclorama: (json.containsKey("cyclorama") ? json["cyclorama"] : throw FormatException('Missing required property')),
1497+ dolphus: (json.containsKey("Dolphus") ? json["Dolphus"] : throw FormatException('Missing required property')),
1498+ duckhearted: (json.containsKey("duckhearted") ? json["duckhearted"] : throw FormatException('Missing required property')),
1499+ ficus: (json.containsKey("Ficus") ? json["Ficus"] : throw FormatException('Missing required property')),
1500+ gemaric: (json.containsKey("Gemaric") ? json["Gemaric"] : throw FormatException('Missing required property')),
1501+ jugation: (json.containsKey("jugation") ? json["jugation"] : throw FormatException('Missing required property')),
1502+ myoliposis: (json.containsKey("myoliposis") ? json["myoliposis"] : throw FormatException('Missing required property')),
1503+ nonnomination: (json.containsKey("nonnomination") ? json["nonnomination"] : throw FormatException('Missing required property')),
1504+ palay: (json.containsKey("palay") ? json["palay"] : throw FormatException('Missing required property')),
1505+ pentactinal: (json.containsKey("pentactinal") ? json["pentactinal"] : throw FormatException('Missing required property')),
1506+ phaet: (json.containsKey("Phaet") ? json["Phaet"] : throw FormatException('Missing required property')),
1507+ piquant: (json.containsKey("piquant") ? json["piquant"] : throw FormatException('Missing required property')),
1508+ registration: (json.containsKey("registration") ? json["registration"] : throw FormatException('Missing required property')),
1509+ remancipation: (json.containsKey("remancipation") ? json["remancipation"] : throw FormatException('Missing required property')),
1510+ scutatiform: (json.containsKey("scutatiform") ? json["scutatiform"] : throw FormatException('Missing required property')),
1511+ theodolite: (json.containsKey("theodolite") ? json["theodolite"] : throw FormatException('Missing required property')),
1512+ underward: (json.containsKey("underward") ? json["underward"] : throw FormatException('Missing required property')),
15131513 );
15141514
15151515 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/priority/combinations4.json

2 generated files · +322 −322
Mdartdefault / TopLevel.dart+161 −161
@@ -274,26 +274,26 @@ class PulpitismClass {
274274 });
275275
276276 factory PulpitismClass.fromJson(Map<String, dynamic> json) => PulpitismClass(
277- abnet: json["abnet"],
278- buckhorn: json["buckhorn"],
279- calciform: json["calciform"],
280- chelophore: json["chelophore"],
281- cogitation: json["cogitation"],
282- decreeable: json["decreeable"],
283- despicable: json["despicable"],
284- isodiazo: json["isodiazo"],
285- jadedly: json["jadedly"],
286- leptochlorite: json["leptochlorite"],
287- nursling: json["nursling"],
288- palamedean: json["palamedean"],
289- photoheliograph: json["photoheliograph"],
290- pipewood: json["pipewood"],
291- roberd: json["roberd"],
292- statable: json["statable"],
293- superassume: json["superassume"],
294- syllabe: json["syllabe"],
295- toughhead: json["toughhead"],
296- underburn: json["underburn"],
277+ abnet: (json.containsKey("abnet") ? json["abnet"] : throw FormatException('Missing required property')),
278+ buckhorn: (json.containsKey("buckhorn") ? json["buckhorn"] : throw FormatException('Missing required property')),
279+ calciform: (json.containsKey("calciform") ? json["calciform"] : throw FormatException('Missing required property')),
280+ chelophore: (json.containsKey("chelophore") ? json["chelophore"] : throw FormatException('Missing required property')),
281+ cogitation: (json.containsKey("cogitation") ? json["cogitation"] : throw FormatException('Missing required property')),
282+ decreeable: (json.containsKey("decreeable") ? json["decreeable"] : throw FormatException('Missing required property')),
283+ despicable: (json.containsKey("despicable") ? json["despicable"] : throw FormatException('Missing required property')),
284+ isodiazo: (json.containsKey("isodiazo") ? json["isodiazo"] : throw FormatException('Missing required property')),
285+ jadedly: (json.containsKey("jadedly") ? json["jadedly"] : throw FormatException('Missing required property')),
286+ leptochlorite: (json.containsKey("leptochlorite") ? json["leptochlorite"] : throw FormatException('Missing required property')),
287+ nursling: (json.containsKey("nursling") ? json["nursling"] : throw FormatException('Missing required property')),
288+ palamedean: (json.containsKey("palamedean") ? json["palamedean"] : throw FormatException('Missing required property')),
289+ photoheliograph: (json.containsKey("photoheliograph") ? json["photoheliograph"] : throw FormatException('Missing required property')),
290+ pipewood: (json.containsKey("pipewood") ? json["pipewood"] : throw FormatException('Missing required property')),
291+ roberd: (json.containsKey("roberd") ? json["roberd"] : throw FormatException('Missing required property')),
292+ statable: (json.containsKey("statable") ? json["statable"] : throw FormatException('Missing required property')),
293+ superassume: (json.containsKey("superassume") ? json["superassume"] : throw FormatException('Missing required property')),
294+ syllabe: (json.containsKey("syllabe") ? json["syllabe"] : throw FormatException('Missing required property')),
295+ toughhead: (json.containsKey("toughhead") ? json["toughhead"] : throw FormatException('Missing required property')),
296+ underburn: (json.containsKey("underburn") ? json["underburn"] : throw FormatException('Missing required property')),
297297 );
298298
299299 Map<String, dynamic> toJson() => {
@@ -366,26 +366,26 @@ class PyodermiaClass {
366366 });
367367
368368 factory PyodermiaClass.fromJson(Map<String, dynamic> json) => PyodermiaClass(
369- aphoristically: json["aphoristically"],
370- apophyllous: json["apophyllous"],
371- cognize: json["cognize"],
372- dermonosology: json["dermonosology"],
373- gyppo: json["Gyppo"],
374- ither: json["ither"],
375- juglandaceous: json["juglandaceous"],
376- litho: json["litho"],
377- macropterous: json["macropterous"],
378- photographer: json["photographer"],
379- romancing: json["romancing"],
380- rumness: json["rumness"],
381- somniloquist: json["somniloquist"],
382- stressfully: json["stressfully"],
383- tactically: json["tactically"],
384- tracheophony: json["tracheophony"],
385- unappositely: json["unappositely"],
386- unclothedly: json["unclothedly"],
387- unimplied: json["unimplied"],
388- unsyncopated: json["unsyncopated"],
369+ aphoristically: (json.containsKey("aphoristically") ? json["aphoristically"] : throw FormatException('Missing required property')),
370+ apophyllous: (json.containsKey("apophyllous") ? json["apophyllous"] : throw FormatException('Missing required property')),
371+ cognize: (json.containsKey("cognize") ? json["cognize"] : throw FormatException('Missing required property')),
372+ dermonosology: (json.containsKey("dermonosology") ? json["dermonosology"] : throw FormatException('Missing required property')),
373+ gyppo: (json.containsKey("Gyppo") ? json["Gyppo"] : throw FormatException('Missing required property')),
374+ ither: (json.containsKey("ither") ? json["ither"] : throw FormatException('Missing required property')),
375+ juglandaceous: (json.containsKey("juglandaceous") ? json["juglandaceous"] : throw FormatException('Missing required property')),
376+ litho: (json.containsKey("litho") ? json["litho"] : throw FormatException('Missing required property')),
377+ macropterous: (json.containsKey("macropterous") ? json["macropterous"] : throw FormatException('Missing required property')),
378+ photographer: (json.containsKey("photographer") ? json["photographer"] : throw FormatException('Missing required property')),
379+ romancing: (json.containsKey("romancing") ? json["romancing"] : throw FormatException('Missing required property')),
380+ rumness: (json.containsKey("rumness") ? json["rumness"] : throw FormatException('Missing required property')),
381+ somniloquist: (json.containsKey("somniloquist") ? json["somniloquist"] : throw FormatException('Missing required property')),
382+ stressfully: (json.containsKey("stressfully") ? json["stressfully"] : throw FormatException('Missing required property')),
383+ tactically: (json.containsKey("tactically") ? json["tactically"] : throw FormatException('Missing required property')),
384+ tracheophony: (json.containsKey("tracheophony") ? json["tracheophony"] : throw FormatException('Missing required property')),
385+ unappositely: (json.containsKey("unappositely") ? json["unappositely"] : throw FormatException('Missing required property')),
386+ unclothedly: (json.containsKey("unclothedly") ? json["unclothedly"] : throw FormatException('Missing required property')),
387+ unimplied: (json.containsKey("unimplied") ? json["unimplied"] : throw FormatException('Missing required property')),
388+ unsyncopated: (json.containsKey("unsyncopated") ? json["unsyncopated"] : throw FormatException('Missing required property')),
389389 );
390390
391391 Map<String, dynamic> toJson() => {
@@ -432,7 +432,7 @@ class QuebrachineClass {
432432 chirotherium: json["Chirotherium"],
433433 disdiapason: json["disdiapason"],
434434 homocerc: json["homocerc"],
435- nonbookish: json["nonbookish"],
435+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
436436 );
437437
438438 Map<String, dynamic> toJson() => {
@@ -694,26 +694,26 @@ class RewriteClass {
694694 });
695695
696696 factory RewriteClass.fromJson(Map<String, dynamic> json) => RewriteClass(
697- accountancy: json["accountancy"],
698- cacotrophic: json["cacotrophic"],
699- contest: json["contest"],
700- couthily: json["couthily"],
701- falculate: json["falculate"],
702- foreseize: json["foreseize"],
703- hyades: json["Hyades"],
704- lemnad: json["lemnad"],
705- monotheistically: json["monotheistically"],
706- nonflying: json["nonflying"],
707- ptenoglossa: json["Ptenoglossa"],
708- repatch: json["repatch"],
709- rodman: json["rodman"],
710- strung: json["strung"],
711- titmal: json["titmal"],
712- twalpennyworth: json["twalpennyworth"],
713- unblamable: json["unblamable"],
714- vertical: json["vertical"],
715- whiggification: json["Whiggification"],
716- yardman: json["yardman"],
697+ accountancy: (json.containsKey("accountancy") ? json["accountancy"] : throw FormatException('Missing required property')),
698+ cacotrophic: (json.containsKey("cacotrophic") ? json["cacotrophic"] : throw FormatException('Missing required property')),
699+ contest: (json.containsKey("contest") ? json["contest"] : throw FormatException('Missing required property')),
700+ couthily: (json.containsKey("couthily") ? json["couthily"] : throw FormatException('Missing required property')),
701+ falculate: (json.containsKey("falculate") ? json["falculate"] : throw FormatException('Missing required property')),
702+ foreseize: (json.containsKey("foreseize") ? json["foreseize"] : throw FormatException('Missing required property')),
703+ hyades: (json.containsKey("Hyades") ? json["Hyades"] : throw FormatException('Missing required property')),
704+ lemnad: (json.containsKey("lemnad") ? json["lemnad"] : throw FormatException('Missing required property')),
705+ monotheistically: (json.containsKey("monotheistically") ? json["monotheistically"] : throw FormatException('Missing required property')),
706+ nonflying: (json.containsKey("nonflying") ? json["nonflying"] : throw FormatException('Missing required property')),
707+ ptenoglossa: (json.containsKey("Ptenoglossa") ? json["Ptenoglossa"] : throw FormatException('Missing required property')),
708+ repatch: (json.containsKey("repatch") ? json["repatch"] : throw FormatException('Missing required property')),
709+ rodman: (json.containsKey("rodman") ? json["rodman"] : throw FormatException('Missing required property')),
710+ strung: (json.containsKey("strung") ? json["strung"] : throw FormatException('Missing required property')),
711+ titmal: (json.containsKey("titmal") ? json["titmal"] : throw FormatException('Missing required property')),
712+ twalpennyworth: (json.containsKey("twalpennyworth") ? json["twalpennyworth"] : throw FormatException('Missing required property')),
713+ unblamable: (json.containsKey("unblamable") ? json["unblamable"] : throw FormatException('Missing required property')),
714+ vertical: (json.containsKey("vertical") ? json["vertical"] : throw FormatException('Missing required property')),
715+ whiggification: (json.containsKey("Whiggification") ? json["Whiggification"] : throw FormatException('Missing required property')),
716+ yardman: (json.containsKey("yardman") ? json["yardman"] : throw FormatException('Missing required property')),
717717 );
718718
719719 Map<String, dynamic> toJson() => {
@@ -786,26 +786,26 @@ class SantirClass {
786786 });
787787
788788 factory SantirClass.fromJson(Map<String, dynamic> json) => SantirClass(
789- admiredly: json["admiredly"],
790- demicaponier: json["demicaponier"],
791- epitympanic: json["epitympanic"],
792- investitor: json["investitor"],
793- lupiform: json["lupiform"],
794- monoflagellate: json["monoflagellate"],
795- paleoethnic: json["paleoethnic"],
796- prediscountable: json["prediscountable"],
797- rhetoricals: json["rhetoricals"],
798- roomth: json["roomth"],
799- saccharose: json["saccharose"],
800- septonasal: json["septonasal"],
801- serpenticide: json["serpenticide"],
802- setarious: json["setarious"],
803- spaework: json["spaework"],
804- stylite: json["stylite"],
805- suessiones: json["Suessiones"],
806- timelily: json["timelily"],
807- unprofaned: json["unprofaned"],
808- vorticular: json["vorticular"],
789+ admiredly: (json.containsKey("admiredly") ? json["admiredly"] : throw FormatException('Missing required property')),
790+ demicaponier: (json.containsKey("demicaponier") ? json["demicaponier"] : throw FormatException('Missing required property')),
791+ epitympanic: (json.containsKey("epitympanic") ? json["epitympanic"] : throw FormatException('Missing required property')),
792+ investitor: (json.containsKey("investitor") ? json["investitor"] : throw FormatException('Missing required property')),
793+ lupiform: (json.containsKey("lupiform") ? json["lupiform"] : throw FormatException('Missing required property')),
794+ monoflagellate: (json.containsKey("monoflagellate") ? json["monoflagellate"] : throw FormatException('Missing required property')),
795+ paleoethnic: (json.containsKey("paleoethnic") ? json["paleoethnic"] : throw FormatException('Missing required property')),
796+ prediscountable: (json.containsKey("prediscountable") ? json["prediscountable"] : throw FormatException('Missing required property')),
797+ rhetoricals: (json.containsKey("rhetoricals") ? json["rhetoricals"] : throw FormatException('Missing required property')),
798+ roomth: (json.containsKey("roomth") ? json["roomth"] : throw FormatException('Missing required property')),
799+ saccharose: (json.containsKey("saccharose") ? json["saccharose"] : throw FormatException('Missing required property')),
800+ septonasal: (json.containsKey("septonasal") ? json["septonasal"] : throw FormatException('Missing required property')),
801+ serpenticide: (json.containsKey("serpenticide") ? json["serpenticide"] : throw FormatException('Missing required property')),
802+ setarious: (json.containsKey("setarious") ? json["setarious"] : throw FormatException('Missing required property')),
803+ spaework: (json.containsKey("spaework") ? json["spaework"] : throw FormatException('Missing required property')),
804+ stylite: (json.containsKey("stylite") ? json["stylite"] : throw FormatException('Missing required property')),
805+ suessiones: (json.containsKey("Suessiones") ? json["Suessiones"] : throw FormatException('Missing required property')),
806+ timelily: (json.containsKey("timelily") ? json["timelily"] : throw FormatException('Missing required property')),
807+ unprofaned: (json.containsKey("unprofaned") ? json["unprofaned"] : throw FormatException('Missing required property')),
808+ vorticular: (json.containsKey("vorticular") ? json["vorticular"] : throw FormatException('Missing required property')),
809809 );
810810
811811 Map<String, dynamic> toJson() => {
@@ -990,26 +990,26 @@ class Scatty {
990990 });
991991
992992 factory Scatty.fromJson(Map<String, dynamic> json) => Scatty(
993- aeriferous: json["aeriferous"],
994- antical: json["antical"],
995- antighostism: json["antighostism"],
996- arcanum: json["arcanum"],
997- autotrophy: json["autotrophy"],
998- baronial: json["baronial"],
999- caffeine: json["caffeine"],
1000- gorgoniacean: json["gorgoniacean"],
1001- heroical: json["heroical"],
1002- hydropical: json["hydropical"],
1003- mechanology: json["mechanology"],
1004- musicopoetic: json["musicopoetic"],
1005- officiality: json["officiality"],
1006- oftentimes: json["oftentimes"],
1007- ophthalmotonometer: json["ophthalmotonometer"],
1008- reflectively: json["reflectively"],
1009- springer: json["springer"],
1010- tabasco: json["Tabasco"],
1011- teleianthous: json["teleianthous"],
1012- uncombated: json["uncombated"],
993+ aeriferous: (json.containsKey("aeriferous") ? json["aeriferous"] : throw FormatException('Missing required property')),
994+ antical: (json.containsKey("antical") ? json["antical"] : throw FormatException('Missing required property')),
995+ antighostism: (json.containsKey("antighostism") ? json["antighostism"] : throw FormatException('Missing required property')),
996+ arcanum: (json.containsKey("arcanum") ? json["arcanum"] : throw FormatException('Missing required property')),
997+ autotrophy: (json.containsKey("autotrophy") ? json["autotrophy"] : throw FormatException('Missing required property')),
998+ baronial: (json.containsKey("baronial") ? json["baronial"] : throw FormatException('Missing required property')),
999+ caffeine: (json.containsKey("caffeine") ? json["caffeine"] : throw FormatException('Missing required property')),
1000+ gorgoniacean: (json.containsKey("gorgoniacean") ? json["gorgoniacean"] : throw FormatException('Missing required property')),
1001+ heroical: (json.containsKey("heroical") ? json["heroical"] : throw FormatException('Missing required property')),
1002+ hydropical: (json.containsKey("hydropical") ? json["hydropical"] : throw FormatException('Missing required property')),
1003+ mechanology: (json.containsKey("mechanology") ? json["mechanology"] : throw FormatException('Missing required property')),
1004+ musicopoetic: (json.containsKey("musicopoetic") ? json["musicopoetic"] : throw FormatException('Missing required property')),
1005+ officiality: (json.containsKey("officiality") ? json["officiality"] : throw FormatException('Missing required property')),
1006+ oftentimes: (json.containsKey("oftentimes") ? json["oftentimes"] : throw FormatException('Missing required property')),
1007+ ophthalmotonometer: (json.containsKey("ophthalmotonometer") ? json["ophthalmotonometer"] : throw FormatException('Missing required property')),
1008+ reflectively: (json.containsKey("reflectively") ? json["reflectively"] : throw FormatException('Missing required property')),
1009+ springer: (json.containsKey("springer") ? json["springer"] : throw FormatException('Missing required property')),
1010+ tabasco: (json.containsKey("Tabasco") ? json["Tabasco"] : throw FormatException('Missing required property')),
1011+ teleianthous: (json.containsKey("teleianthous") ? json["teleianthous"] : throw FormatException('Missing required property')),
1012+ uncombated: (json.containsKey("uncombated") ? json["uncombated"] : throw FormatException('Missing required property')),
10131013 );
10141014
10151015 Map<String, dynamic> toJson() => {
@@ -1082,26 +1082,26 @@ class SisteringClass {
10821082 });
10831083
10841084 factory SisteringClass.fromJson(Map<String, dynamic> json) => SisteringClass(
1085- amphicarpic: json["amphicarpic"],
1086- chianti: json["Chianti"],
1087- frigorific: json["frigorific"],
1088- haplomi: json["Haplomi"],
1089- hyperkinesis: json["hyperkinesis"],
1090- laudable: json["laudable"],
1091- madwoman: json["madwoman"],
1092- maimedly: json["maimedly"],
1093- micropterygidae: json["Micropterygidae"],
1094- microrhabdus: json["microrhabdus"],
1095- nondense: json["nondense"],
1096- phlebemphraxis: json["phlebemphraxis"],
1097- redsear: json["redsear"],
1098- schismatical: json["schismatical"],
1099- tartryl: json["tartryl"],
1100- unabhorred: json["unabhorred"],
1101- undeliberateness: json["undeliberateness"],
1102- unmixable: json["unmixable"],
1103- untruckling: json["untruckling"],
1104- vineal: json["vineal"],
1085+ amphicarpic: (json.containsKey("amphicarpic") ? json["amphicarpic"] : throw FormatException('Missing required property')),
1086+ chianti: (json.containsKey("Chianti") ? json["Chianti"] : throw FormatException('Missing required property')),
1087+ frigorific: (json.containsKey("frigorific") ? json["frigorific"] : throw FormatException('Missing required property')),
1088+ haplomi: (json.containsKey("Haplomi") ? json["Haplomi"] : throw FormatException('Missing required property')),
1089+ hyperkinesis: (json.containsKey("hyperkinesis") ? json["hyperkinesis"] : throw FormatException('Missing required property')),
1090+ laudable: (json.containsKey("laudable") ? json["laudable"] : throw FormatException('Missing required property')),
1091+ madwoman: (json.containsKey("madwoman") ? json["madwoman"] : throw FormatException('Missing required property')),
1092+ maimedly: (json.containsKey("maimedly") ? json["maimedly"] : throw FormatException('Missing required property')),
1093+ micropterygidae: (json.containsKey("Micropterygidae") ? json["Micropterygidae"] : throw FormatException('Missing required property')),
1094+ microrhabdus: (json.containsKey("microrhabdus") ? json["microrhabdus"] : throw FormatException('Missing required property')),
1095+ nondense: (json.containsKey("nondense") ? json["nondense"] : throw FormatException('Missing required property')),
1096+ phlebemphraxis: (json.containsKey("phlebemphraxis") ? json["phlebemphraxis"] : throw FormatException('Missing required property')),
1097+ redsear: (json.containsKey("redsear") ? json["redsear"] : throw FormatException('Missing required property')),
1098+ schismatical: (json.containsKey("schismatical") ? json["schismatical"] : throw FormatException('Missing required property')),
1099+ tartryl: (json.containsKey("tartryl") ? json["tartryl"] : throw FormatException('Missing required property')),
1100+ unabhorred: (json.containsKey("unabhorred") ? json["unabhorred"] : throw FormatException('Missing required property')),
1101+ undeliberateness: (json.containsKey("undeliberateness") ? json["undeliberateness"] : throw FormatException('Missing required property')),
1102+ unmixable: (json.containsKey("unmixable") ? json["unmixable"] : throw FormatException('Missing required property')),
1103+ untruckling: (json.containsKey("untruckling") ? json["untruckling"] : throw FormatException('Missing required property')),
1104+ vineal: (json.containsKey("vineal") ? json["vineal"] : throw FormatException('Missing required property')),
11051105 );
11061106
11071107 Map<String, dynamic> toJson() => {
@@ -1622,26 +1622,26 @@ class UnstressedClass {
16221622 });
16231623
16241624 factory UnstressedClass.fromJson(Map<String, dynamic> json) => UnstressedClass(
1625- alain: json["Alain"],
1626- amphirhina: json["Amphirhina"],
1627- antimachinery: json["antimachinery"],
1628- coldish: json["coldish"],
1629- crantara: json["crantara"],
1630- distinguishing: json["distinguishing"],
1631- elytroposis: json["elytroposis"],
1632- gentianwort: json["gentianwort"],
1633- heliosis: json["heliosis"],
1634- instrumental: json["instrumental"],
1635- introinflection: json["introinflection"],
1636- kala: json["kala"],
1637- lincolnian: json["Lincolnian"],
1638- metad: json["metad"],
1639- sarcophilus: json["Sarcophilus"],
1640- swingingly: json["swingingly"],
1641- unconformity: json["unconformity"],
1642- undecreed: json["undecreed"],
1643- venerable: json["venerable"],
1644- vowellessness: json["vowellessness"],
1625+ alain: (json.containsKey("Alain") ? json["Alain"] : throw FormatException('Missing required property')),
1626+ amphirhina: (json.containsKey("Amphirhina") ? json["Amphirhina"] : throw FormatException('Missing required property')),
1627+ antimachinery: (json.containsKey("antimachinery") ? json["antimachinery"] : throw FormatException('Missing required property')),
1628+ coldish: (json.containsKey("coldish") ? json["coldish"] : throw FormatException('Missing required property')),
1629+ crantara: (json.containsKey("crantara") ? json["crantara"] : throw FormatException('Missing required property')),
1630+ distinguishing: (json.containsKey("distinguishing") ? json["distinguishing"] : throw FormatException('Missing required property')),
1631+ elytroposis: (json.containsKey("elytroposis") ? json["elytroposis"] : throw FormatException('Missing required property')),
1632+ gentianwort: (json.containsKey("gentianwort") ? json["gentianwort"] : throw FormatException('Missing required property')),
1633+ heliosis: (json.containsKey("heliosis") ? json["heliosis"] : throw FormatException('Missing required property')),
1634+ instrumental: (json.containsKey("instrumental") ? json["instrumental"] : throw FormatException('Missing required property')),
1635+ introinflection: (json.containsKey("introinflection") ? json["introinflection"] : throw FormatException('Missing required property')),
1636+ kala: (json.containsKey("kala") ? json["kala"] : throw FormatException('Missing required property')),
1637+ lincolnian: (json.containsKey("Lincolnian") ? json["Lincolnian"] : throw FormatException('Missing required property')),
1638+ metad: (json.containsKey("metad") ? json["metad"] : throw FormatException('Missing required property')),
1639+ sarcophilus: (json.containsKey("Sarcophilus") ? json["Sarcophilus"] : throw FormatException('Missing required property')),
1640+ swingingly: (json.containsKey("swingingly") ? json["swingingly"] : throw FormatException('Missing required property')),
1641+ unconformity: (json.containsKey("unconformity") ? json["unconformity"] : throw FormatException('Missing required property')),
1642+ undecreed: (json.containsKey("undecreed") ? json["undecreed"] : throw FormatException('Missing required property')),
1643+ venerable: (json.containsKey("venerable") ? json["venerable"] : throw FormatException('Missing required property')),
1644+ vowellessness: (json.containsKey("vowellessness") ? json["vowellessness"] : throw FormatException('Missing required property')),
16451645 );
16461646
16471647 Map<String, dynamic> toJson() => {
@@ -1714,26 +1714,26 @@ class WrothyClass {
17141714 });
17151715
17161716 factory WrothyClass.fromJson(Map<String, dynamic> json) => WrothyClass(
1717- aeschynanthus: json["Aeschynanthus"],
1718- aquiferous: json["aquiferous"],
1719- cheapener: json["cheapener"],
1720- enumeration: json["enumeration"],
1721- ephesine: json["Ephesine"],
1722- escadrille: json["escadrille"],
1723- estrous: json["estrous"],
1724- interestedly: json["interestedly"],
1725- katakinetomer: json["katakinetomer"],
1726- mortification: json["mortification"],
1727- morula: json["morula"],
1728- orthosymmetrical: json["orthosymmetrical"],
1729- overbark: json["overbark"],
1730- politist: json["politist"],
1731- qualified: json["qualified"],
1732- sphenomalar: json["sphenomalar"],
1733- throatful: json["throatful"],
1734- transhumance: json["transhumance"],
1735- triandrian: json["triandrian"],
1736- unbooked: json["unbooked"],
1717+ aeschynanthus: (json.containsKey("Aeschynanthus") ? json["Aeschynanthus"] : throw FormatException('Missing required property')),
1718+ aquiferous: (json.containsKey("aquiferous") ? json["aquiferous"] : throw FormatException('Missing required property')),
1719+ cheapener: (json.containsKey("cheapener") ? json["cheapener"] : throw FormatException('Missing required property')),
1720+ enumeration: (json.containsKey("enumeration") ? json["enumeration"] : throw FormatException('Missing required property')),
1721+ ephesine: (json.containsKey("Ephesine") ? json["Ephesine"] : throw FormatException('Missing required property')),
1722+ escadrille: (json.containsKey("escadrille") ? json["escadrille"] : throw FormatException('Missing required property')),
1723+ estrous: (json.containsKey("estrous") ? json["estrous"] : throw FormatException('Missing required property')),
1724+ interestedly: (json.containsKey("interestedly") ? json["interestedly"] : throw FormatException('Missing required property')),
1725+ katakinetomer: (json.containsKey("katakinetomer") ? json["katakinetomer"] : throw FormatException('Missing required property')),
1726+ mortification: (json.containsKey("mortification") ? json["mortification"] : throw FormatException('Missing required property')),
1727+ morula: (json.containsKey("morula") ? json["morula"] : throw FormatException('Missing required property')),
1728+ orthosymmetrical: (json.containsKey("orthosymmetrical") ? json["orthosymmetrical"] : throw FormatException('Missing required property')),
1729+ overbark: (json.containsKey("overbark") ? json["overbark"] : throw FormatException('Missing required property')),
1730+ politist: (json.containsKey("politist") ? json["politist"] : throw FormatException('Missing required property')),
1731+ qualified: (json.containsKey("qualified") ? json["qualified"] : throw FormatException('Missing required property')),
1732+ sphenomalar: (json.containsKey("sphenomalar") ? json["sphenomalar"] : throw FormatException('Missing required property')),
1733+ throatful: (json.containsKey("throatful") ? json["throatful"] : throw FormatException('Missing required property')),
1734+ transhumance: (json.containsKey("transhumance") ? json["transhumance"] : throw FormatException('Missing required property')),
1735+ triandrian: (json.containsKey("triandrian") ? json["triandrian"] : throw FormatException('Missing required property')),
1736+ unbooked: (json.containsKey("unbooked") ? json["unbooked"] : throw FormatException('Missing required property')),
17371737 );
17381738
17391739 Map<String, dynamic> toJson() => {
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+161 −161
@@ -274,26 +274,26 @@ class PulpitismClass {
274274 });
275275
276276 factory PulpitismClass.fromJson(Map<String, dynamic> json) => PulpitismClass(
277- abnet: json["abnet"],
278- buckhorn: json["buckhorn"],
279- calciform: json["calciform"],
280- chelophore: json["chelophore"],
281- cogitation: json["cogitation"],
282- decreeable: json["decreeable"],
283- despicable: json["despicable"],
284- isodiazo: json["isodiazo"],
285- jadedly: json["jadedly"],
286- leptochlorite: json["leptochlorite"],
287- nursling: json["nursling"],
288- palamedean: json["palamedean"],
289- photoheliograph: json["photoheliograph"],
290- pipewood: json["pipewood"],
291- roberd: json["roberd"],
292- statable: json["statable"],
293- superassume: json["superassume"],
294- syllabe: json["syllabe"],
295- toughhead: json["toughhead"],
296- underburn: json["underburn"],
277+ abnet: (json.containsKey("abnet") ? json["abnet"] : throw FormatException('Missing required property')),
278+ buckhorn: (json.containsKey("buckhorn") ? json["buckhorn"] : throw FormatException('Missing required property')),
279+ calciform: (json.containsKey("calciform") ? json["calciform"] : throw FormatException('Missing required property')),
280+ chelophore: (json.containsKey("chelophore") ? json["chelophore"] : throw FormatException('Missing required property')),
281+ cogitation: (json.containsKey("cogitation") ? json["cogitation"] : throw FormatException('Missing required property')),
282+ decreeable: (json.containsKey("decreeable") ? json["decreeable"] : throw FormatException('Missing required property')),
283+ despicable: (json.containsKey("despicable") ? json["despicable"] : throw FormatException('Missing required property')),
284+ isodiazo: (json.containsKey("isodiazo") ? json["isodiazo"] : throw FormatException('Missing required property')),
285+ jadedly: (json.containsKey("jadedly") ? json["jadedly"] : throw FormatException('Missing required property')),
286+ leptochlorite: (json.containsKey("leptochlorite") ? json["leptochlorite"] : throw FormatException('Missing required property')),
287+ nursling: (json.containsKey("nursling") ? json["nursling"] : throw FormatException('Missing required property')),
288+ palamedean: (json.containsKey("palamedean") ? json["palamedean"] : throw FormatException('Missing required property')),
289+ photoheliograph: (json.containsKey("photoheliograph") ? json["photoheliograph"] : throw FormatException('Missing required property')),
290+ pipewood: (json.containsKey("pipewood") ? json["pipewood"] : throw FormatException('Missing required property')),
291+ roberd: (json.containsKey("roberd") ? json["roberd"] : throw FormatException('Missing required property')),
292+ statable: (json.containsKey("statable") ? json["statable"] : throw FormatException('Missing required property')),
293+ superassume: (json.containsKey("superassume") ? json["superassume"] : throw FormatException('Missing required property')),
294+ syllabe: (json.containsKey("syllabe") ? json["syllabe"] : throw FormatException('Missing required property')),
295+ toughhead: (json.containsKey("toughhead") ? json["toughhead"] : throw FormatException('Missing required property')),
296+ underburn: (json.containsKey("underburn") ? json["underburn"] : throw FormatException('Missing required property')),
297297 );
298298
299299 Map<String, dynamic> toJson() => {
@@ -366,26 +366,26 @@ class PyodermiaClass {
366366 });
367367
368368 factory PyodermiaClass.fromJson(Map<String, dynamic> json) => PyodermiaClass(
369- aphoristically: json["aphoristically"],
370- apophyllous: json["apophyllous"],
371- cognize: json["cognize"],
372- dermonosology: json["dermonosology"],
373- gyppo: json["Gyppo"],
374- ither: json["ither"],
375- juglandaceous: json["juglandaceous"],
376- litho: json["litho"],
377- macropterous: json["macropterous"],
378- photographer: json["photographer"],
379- romancing: json["romancing"],
380- rumness: json["rumness"],
381- somniloquist: json["somniloquist"],
382- stressfully: json["stressfully"],
383- tactically: json["tactically"],
384- tracheophony: json["tracheophony"],
385- unappositely: json["unappositely"],
386- unclothedly: json["unclothedly"],
387- unimplied: json["unimplied"],
388- unsyncopated: json["unsyncopated"],
369+ aphoristically: (json.containsKey("aphoristically") ? json["aphoristically"] : throw FormatException('Missing required property')),
370+ apophyllous: (json.containsKey("apophyllous") ? json["apophyllous"] : throw FormatException('Missing required property')),
371+ cognize: (json.containsKey("cognize") ? json["cognize"] : throw FormatException('Missing required property')),
372+ dermonosology: (json.containsKey("dermonosology") ? json["dermonosology"] : throw FormatException('Missing required property')),
373+ gyppo: (json.containsKey("Gyppo") ? json["Gyppo"] : throw FormatException('Missing required property')),
374+ ither: (json.containsKey("ither") ? json["ither"] : throw FormatException('Missing required property')),
375+ juglandaceous: (json.containsKey("juglandaceous") ? json["juglandaceous"] : throw FormatException('Missing required property')),
376+ litho: (json.containsKey("litho") ? json["litho"] : throw FormatException('Missing required property')),
377+ macropterous: (json.containsKey("macropterous") ? json["macropterous"] : throw FormatException('Missing required property')),
378+ photographer: (json.containsKey("photographer") ? json["photographer"] : throw FormatException('Missing required property')),
379+ romancing: (json.containsKey("romancing") ? json["romancing"] : throw FormatException('Missing required property')),
380+ rumness: (json.containsKey("rumness") ? json["rumness"] : throw FormatException('Missing required property')),
381+ somniloquist: (json.containsKey("somniloquist") ? json["somniloquist"] : throw FormatException('Missing required property')),
382+ stressfully: (json.containsKey("stressfully") ? json["stressfully"] : throw FormatException('Missing required property')),
383+ tactically: (json.containsKey("tactically") ? json["tactically"] : throw FormatException('Missing required property')),
384+ tracheophony: (json.containsKey("tracheophony") ? json["tracheophony"] : throw FormatException('Missing required property')),
385+ unappositely: (json.containsKey("unappositely") ? json["unappositely"] : throw FormatException('Missing required property')),
386+ unclothedly: (json.containsKey("unclothedly") ? json["unclothedly"] : throw FormatException('Missing required property')),
387+ unimplied: (json.containsKey("unimplied") ? json["unimplied"] : throw FormatException('Missing required property')),
388+ unsyncopated: (json.containsKey("unsyncopated") ? json["unsyncopated"] : throw FormatException('Missing required property')),
389389 );
390390
391391 Map<String, dynamic> toJson() => {
@@ -432,7 +432,7 @@ class QuebrachineClass {
432432 chirotherium: json["Chirotherium"],
433433 disdiapason: json["disdiapason"],
434434 homocerc: json["homocerc"],
435- nonbookish: json["nonbookish"],
435+ nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')),
436436 );
437437
438438 Map<String, dynamic> toJson() => {
@@ -694,26 +694,26 @@ class RewriteClass {
694694 });
695695
696696 factory RewriteClass.fromJson(Map<String, dynamic> json) => RewriteClass(
697- accountancy: json["accountancy"],
698- cacotrophic: json["cacotrophic"],
699- contest: json["contest"],
700- couthily: json["couthily"],
701- falculate: json["falculate"],
702- foreseize: json["foreseize"],
703- hyades: json["Hyades"],
704- lemnad: json["lemnad"],
705- monotheistically: json["monotheistically"],
706- nonflying: json["nonflying"],
707- ptenoglossa: json["Ptenoglossa"],
708- repatch: json["repatch"],
709- rodman: json["rodman"],
710- strung: json["strung"],
711- titmal: json["titmal"],
712- twalpennyworth: json["twalpennyworth"],
713- unblamable: json["unblamable"],
714- vertical: json["vertical"],
715- whiggification: json["Whiggification"],
716- yardman: json["yardman"],
697+ accountancy: (json.containsKey("accountancy") ? json["accountancy"] : throw FormatException('Missing required property')),
698+ cacotrophic: (json.containsKey("cacotrophic") ? json["cacotrophic"] : throw FormatException('Missing required property')),
699+ contest: (json.containsKey("contest") ? json["contest"] : throw FormatException('Missing required property')),
700+ couthily: (json.containsKey("couthily") ? json["couthily"] : throw FormatException('Missing required property')),
701+ falculate: (json.containsKey("falculate") ? json["falculate"] : throw FormatException('Missing required property')),
702+ foreseize: (json.containsKey("foreseize") ? json["foreseize"] : throw FormatException('Missing required property')),
703+ hyades: (json.containsKey("Hyades") ? json["Hyades"] : throw FormatException('Missing required property')),
704+ lemnad: (json.containsKey("lemnad") ? json["lemnad"] : throw FormatException('Missing required property')),
705+ monotheistically: (json.containsKey("monotheistically") ? json["monotheistically"] : throw FormatException('Missing required property')),
706+ nonflying: (json.containsKey("nonflying") ? json["nonflying"] : throw FormatException('Missing required property')),
707+ ptenoglossa: (json.containsKey("Ptenoglossa") ? json["Ptenoglossa"] : throw FormatException('Missing required property')),
708+ repatch: (json.containsKey("repatch") ? json["repatch"] : throw FormatException('Missing required property')),
709+ rodman: (json.containsKey("rodman") ? json["rodman"] : throw FormatException('Missing required property')),
710+ strung: (json.containsKey("strung") ? json["strung"] : throw FormatException('Missing required property')),
711+ titmal: (json.containsKey("titmal") ? json["titmal"] : throw FormatException('Missing required property')),
712+ twalpennyworth: (json.containsKey("twalpennyworth") ? json["twalpennyworth"] : throw FormatException('Missing required property')),
713+ unblamable: (json.containsKey("unblamable") ? json["unblamable"] : throw FormatException('Missing required property')),
714+ vertical: (json.containsKey("vertical") ? json["vertical"] : throw FormatException('Missing required property')),
715+ whiggification: (json.containsKey("Whiggification") ? json["Whiggification"] : throw FormatException('Missing required property')),
716+ yardman: (json.containsKey("yardman") ? json["yardman"] : throw FormatException('Missing required property')),
717717 );
718718
719719 Map<String, dynamic> toJson() => {
@@ -786,26 +786,26 @@ class SantirClass {
786786 });
787787
788788 factory SantirClass.fromJson(Map<String, dynamic> json) => SantirClass(
789- admiredly: json["admiredly"],
790- demicaponier: json["demicaponier"],
791- epitympanic: json["epitympanic"],
792- investitor: json["investitor"],
793- lupiform: json["lupiform"],
794- monoflagellate: json["monoflagellate"],
795- paleoethnic: json["paleoethnic"],
796- prediscountable: json["prediscountable"],
797- rhetoricals: json["rhetoricals"],
798- roomth: json["roomth"],
799- saccharose: json["saccharose"],
800- septonasal: json["septonasal"],
801- serpenticide: json["serpenticide"],
802- setarious: json["setarious"],
803- spaework: json["spaework"],
804- stylite: json["stylite"],
805- suessiones: json["Suessiones"],
806- timelily: json["timelily"],
807- unprofaned: json["unprofaned"],
808- vorticular: json["vorticular"],
789+ admiredly: (json.containsKey("admiredly") ? json["admiredly"] : throw FormatException('Missing required property')),
790+ demicaponier: (json.containsKey("demicaponier") ? json["demicaponier"] : throw FormatException('Missing required property')),
791+ epitympanic: (json.containsKey("epitympanic") ? json["epitympanic"] : throw FormatException('Missing required property')),
792+ investitor: (json.containsKey("investitor") ? json["investitor"] : throw FormatException('Missing required property')),
793+ lupiform: (json.containsKey("lupiform") ? json["lupiform"] : throw FormatException('Missing required property')),
794+ monoflagellate: (json.containsKey("monoflagellate") ? json["monoflagellate"] : throw FormatException('Missing required property')),
795+ paleoethnic: (json.containsKey("paleoethnic") ? json["paleoethnic"] : throw FormatException('Missing required property')),
796+ prediscountable: (json.containsKey("prediscountable") ? json["prediscountable"] : throw FormatException('Missing required property')),
797+ rhetoricals: (json.containsKey("rhetoricals") ? json["rhetoricals"] : throw FormatException('Missing required property')),
798+ roomth: (json.containsKey("roomth") ? json["roomth"] : throw FormatException('Missing required property')),
799+ saccharose: (json.containsKey("saccharose") ? json["saccharose"] : throw FormatException('Missing required property')),
800+ septonasal: (json.containsKey("septonasal") ? json["septonasal"] : throw FormatException('Missing required property')),
801+ serpenticide: (json.containsKey("serpenticide") ? json["serpenticide"] : throw FormatException('Missing required property')),
802+ setarious: (json.containsKey("setarious") ? json["setarious"] : throw FormatException('Missing required property')),
803+ spaework: (json.containsKey("spaework") ? json["spaework"] : throw FormatException('Missing required property')),
804+ stylite: (json.containsKey("stylite") ? json["stylite"] : throw FormatException('Missing required property')),
805+ suessiones: (json.containsKey("Suessiones") ? json["Suessiones"] : throw FormatException('Missing required property')),
806+ timelily: (json.containsKey("timelily") ? json["timelily"] : throw FormatException('Missing required property')),
807+ unprofaned: (json.containsKey("unprofaned") ? json["unprofaned"] : throw FormatException('Missing required property')),
808+ vorticular: (json.containsKey("vorticular") ? json["vorticular"] : throw FormatException('Missing required property')),
809809 );
810810
811811 Map<String, dynamic> toJson() => {
@@ -990,26 +990,26 @@ class Scatty {
990990 });
991991
992992 factory Scatty.fromJson(Map<String, dynamic> json) => Scatty(
993- aeriferous: json["aeriferous"],
994- antical: json["antical"],
995- antighostism: json["antighostism"],
996- arcanum: json["arcanum"],
997- autotrophy: json["autotrophy"],
998- baronial: json["baronial"],
999- caffeine: json["caffeine"],
1000- gorgoniacean: json["gorgoniacean"],
1001- heroical: json["heroical"],
1002- hydropical: json["hydropical"],
1003- mechanology: json["mechanology"],
1004- musicopoetic: json["musicopoetic"],
1005- officiality: json["officiality"],
1006- oftentimes: json["oftentimes"],
1007- ophthalmotonometer: json["ophthalmotonometer"],
1008- reflectively: json["reflectively"],
1009- springer: json["springer"],
1010- tabasco: json["Tabasco"],
1011- teleianthous: json["teleianthous"],
1012- uncombated: json["uncombated"],
993+ aeriferous: (json.containsKey("aeriferous") ? json["aeriferous"] : throw FormatException('Missing required property')),
994+ antical: (json.containsKey("antical") ? json["antical"] : throw FormatException('Missing required property')),
995+ antighostism: (json.containsKey("antighostism") ? json["antighostism"] : throw FormatException('Missing required property')),
996+ arcanum: (json.containsKey("arcanum") ? json["arcanum"] : throw FormatException('Missing required property')),
997+ autotrophy: (json.containsKey("autotrophy") ? json["autotrophy"] : throw FormatException('Missing required property')),
998+ baronial: (json.containsKey("baronial") ? json["baronial"] : throw FormatException('Missing required property')),
999+ caffeine: (json.containsKey("caffeine") ? json["caffeine"] : throw FormatException('Missing required property')),
1000+ gorgoniacean: (json.containsKey("gorgoniacean") ? json["gorgoniacean"] : throw FormatException('Missing required property')),
1001+ heroical: (json.containsKey("heroical") ? json["heroical"] : throw FormatException('Missing required property')),
1002+ hydropical: (json.containsKey("hydropical") ? json["hydropical"] : throw FormatException('Missing required property')),
1003+ mechanology: (json.containsKey("mechanology") ? json["mechanology"] : throw FormatException('Missing required property')),
1004+ musicopoetic: (json.containsKey("musicopoetic") ? json["musicopoetic"] : throw FormatException('Missing required property')),
1005+ officiality: (json.containsKey("officiality") ? json["officiality"] : throw FormatException('Missing required property')),
1006+ oftentimes: (json.containsKey("oftentimes") ? json["oftentimes"] : throw FormatException('Missing required property')),
1007+ ophthalmotonometer: (json.containsKey("ophthalmotonometer") ? json["ophthalmotonometer"] : throw FormatException('Missing required property')),
1008+ reflectively: (json.containsKey("reflectively") ? json["reflectively"] : throw FormatException('Missing required property')),
1009+ springer: (json.containsKey("springer") ? json["springer"] : throw FormatException('Missing required property')),
1010+ tabasco: (json.containsKey("Tabasco") ? json["Tabasco"] : throw FormatException('Missing required property')),
1011+ teleianthous: (json.containsKey("teleianthous") ? json["teleianthous"] : throw FormatException('Missing required property')),
1012+ uncombated: (json.containsKey("uncombated") ? json["uncombated"] : throw FormatException('Missing required property')),
10131013 );
10141014
10151015 Map<String, dynamic> toJson() => {
@@ -1082,26 +1082,26 @@ class SisteringClass {
10821082 });
10831083
10841084 factory SisteringClass.fromJson(Map<String, dynamic> json) => SisteringClass(
1085- amphicarpic: json["amphicarpic"],
1086- chianti: json["Chianti"],
1087- frigorific: json["frigorific"],
1088- haplomi: json["Haplomi"],
1089- hyperkinesis: json["hyperkinesis"],
1090- laudable: json["laudable"],
1091- madwoman: json["madwoman"],
1092- maimedly: json["maimedly"],
1093- micropterygidae: json["Micropterygidae"],
1094- microrhabdus: json["microrhabdus"],
1095- nondense: json["nondense"],
1096- phlebemphraxis: json["phlebemphraxis"],
1097- redsear: json["redsear"],
1098- schismatical: json["schismatical"],
1099- tartryl: json["tartryl"],
1100- unabhorred: json["unabhorred"],
1101- undeliberateness: json["undeliberateness"],
1102- unmixable: json["unmixable"],
1103- untruckling: json["untruckling"],
1104- vineal: json["vineal"],
1085+ amphicarpic: (json.containsKey("amphicarpic") ? json["amphicarpic"] : throw FormatException('Missing required property')),
1086+ chianti: (json.containsKey("Chianti") ? json["Chianti"] : throw FormatException('Missing required property')),
1087+ frigorific: (json.containsKey("frigorific") ? json["frigorific"] : throw FormatException('Missing required property')),
1088+ haplomi: (json.containsKey("Haplomi") ? json["Haplomi"] : throw FormatException('Missing required property')),
1089+ hyperkinesis: (json.containsKey("hyperkinesis") ? json["hyperkinesis"] : throw FormatException('Missing required property')),
1090+ laudable: (json.containsKey("laudable") ? json["laudable"] : throw FormatException('Missing required property')),
1091+ madwoman: (json.containsKey("madwoman") ? json["madwoman"] : throw FormatException('Missing required property')),
1092+ maimedly: (json.containsKey("maimedly") ? json["maimedly"] : throw FormatException('Missing required property')),
1093+ micropterygidae: (json.containsKey("Micropterygidae") ? json["Micropterygidae"] : throw FormatException('Missing required property')),
1094+ microrhabdus: (json.containsKey("microrhabdus") ? json["microrhabdus"] : throw FormatException('Missing required property')),
1095+ nondense: (json.containsKey("nondense") ? json["nondense"] : throw FormatException('Missing required property')),
1096+ phlebemphraxis: (json.containsKey("phlebemphraxis") ? json["phlebemphraxis"] : throw FormatException('Missing required property')),
1097+ redsear: (json.containsKey("redsear") ? json["redsear"] : throw FormatException('Missing required property')),
1098+ schismatical: (json.containsKey("schismatical") ? json["schismatical"] : throw FormatException('Missing required property')),
1099+ tartryl: (json.containsKey("tartryl") ? json["tartryl"] : throw FormatException('Missing required property')),
1100+ unabhorred: (json.containsKey("unabhorred") ? json["unabhorred"] : throw FormatException('Missing required property')),
1101+ undeliberateness: (json.containsKey("undeliberateness") ? json["undeliberateness"] : throw FormatException('Missing required property')),
1102+ unmixable: (json.containsKey("unmixable") ? json["unmixable"] : throw FormatException('Missing required property')),
1103+ untruckling: (json.containsKey("untruckling") ? json["untruckling"] : throw FormatException('Missing required property')),
1104+ vineal: (json.containsKey("vineal") ? json["vineal"] : throw FormatException('Missing required property')),
11051105 );
11061106
11071107 Map<String, dynamic> toJson() => {
@@ -1622,26 +1622,26 @@ class UnstressedClass {
16221622 });
16231623
16241624 factory UnstressedClass.fromJson(Map<String, dynamic> json) => UnstressedClass(
1625- alain: json["Alain"],
1626- amphirhina: json["Amphirhina"],
1627- antimachinery: json["antimachinery"],
1628- coldish: json["coldish"],
1629- crantara: json["crantara"],
1630- distinguishing: json["distinguishing"],
1631- elytroposis: json["elytroposis"],
1632- gentianwort: json["gentianwort"],
1633- heliosis: json["heliosis"],
1634- instrumental: json["instrumental"],
1635- introinflection: json["introinflection"],
1636- kala: json["kala"],
1637- lincolnian: json["Lincolnian"],
1638- metad: json["metad"],
1639- sarcophilus: json["Sarcophilus"],
1640- swingingly: json["swingingly"],
1641- unconformity: json["unconformity"],
1642- undecreed: json["undecreed"],
1643- venerable: json["venerable"],
1644- vowellessness: json["vowellessness"],
1625+ alain: (json.containsKey("Alain") ? json["Alain"] : throw FormatException('Missing required property')),
1626+ amphirhina: (json.containsKey("Amphirhina") ? json["Amphirhina"] : throw FormatException('Missing required property')),
1627+ antimachinery: (json.containsKey("antimachinery") ? json["antimachinery"] : throw FormatException('Missing required property')),
1628+ coldish: (json.containsKey("coldish") ? json["coldish"] : throw FormatException('Missing required property')),
1629+ crantara: (json.containsKey("crantara") ? json["crantara"] : throw FormatException('Missing required property')),
1630+ distinguishing: (json.containsKey("distinguishing") ? json["distinguishing"] : throw FormatException('Missing required property')),
1631+ elytroposis: (json.containsKey("elytroposis") ? json["elytroposis"] : throw FormatException('Missing required property')),
1632+ gentianwort: (json.containsKey("gentianwort") ? json["gentianwort"] : throw FormatException('Missing required property')),
1633+ heliosis: (json.containsKey("heliosis") ? json["heliosis"] : throw FormatException('Missing required property')),
1634+ instrumental: (json.containsKey("instrumental") ? json["instrumental"] : throw FormatException('Missing required property')),
1635+ introinflection: (json.containsKey("introinflection") ? json["introinflection"] : throw FormatException('Missing required property')),
1636+ kala: (json.containsKey("kala") ? json["kala"] : throw FormatException('Missing required property')),
1637+ lincolnian: (json.containsKey("Lincolnian") ? json["Lincolnian"] : throw FormatException('Missing required property')),
1638+ metad: (json.containsKey("metad") ? json["metad"] : throw FormatException('Missing required property')),
1639+ sarcophilus: (json.containsKey("Sarcophilus") ? json["Sarcophilus"] : throw FormatException('Missing required property')),
1640+ swingingly: (json.containsKey("swingingly") ? json["swingingly"] : throw FormatException('Missing required property')),
1641+ unconformity: (json.containsKey("unconformity") ? json["unconformity"] : throw FormatException('Missing required property')),
1642+ undecreed: (json.containsKey("undecreed") ? json["undecreed"] : throw FormatException('Missing required property')),
1643+ venerable: (json.containsKey("venerable") ? json["venerable"] : throw FormatException('Missing required property')),
1644+ vowellessness: (json.containsKey("vowellessness") ? json["vowellessness"] : throw FormatException('Missing required property')),
16451645 );
16461646
16471647 Map<String, dynamic> toJson() => {
@@ -1714,26 +1714,26 @@ class WrothyClass {
17141714 });
17151715
17161716 factory WrothyClass.fromJson(Map<String, dynamic> json) => WrothyClass(
1717- aeschynanthus: json["Aeschynanthus"],
1718- aquiferous: json["aquiferous"],
1719- cheapener: json["cheapener"],
1720- enumeration: json["enumeration"],
1721- ephesine: json["Ephesine"],
1722- escadrille: json["escadrille"],
1723- estrous: json["estrous"],
1724- interestedly: json["interestedly"],
1725- katakinetomer: json["katakinetomer"],
1726- mortification: json["mortification"],
1727- morula: json["morula"],
1728- orthosymmetrical: json["orthosymmetrical"],
1729- overbark: json["overbark"],
1730- politist: json["politist"],
1731- qualified: json["qualified"],
1732- sphenomalar: json["sphenomalar"],
1733- throatful: json["throatful"],
1734- transhumance: json["transhumance"],
1735- triandrian: json["triandrian"],
1736- unbooked: json["unbooked"],
1717+ aeschynanthus: (json.containsKey("Aeschynanthus") ? json["Aeschynanthus"] : throw FormatException('Missing required property')),
1718+ aquiferous: (json.containsKey("aquiferous") ? json["aquiferous"] : throw FormatException('Missing required property')),
1719+ cheapener: (json.containsKey("cheapener") ? json["cheapener"] : throw FormatException('Missing required property')),
1720+ enumeration: (json.containsKey("enumeration") ? json["enumeration"] : throw FormatException('Missing required property')),
1721+ ephesine: (json.containsKey("Ephesine") ? json["Ephesine"] : throw FormatException('Missing required property')),
1722+ escadrille: (json.containsKey("escadrille") ? json["escadrille"] : throw FormatException('Missing required property')),
1723+ estrous: (json.containsKey("estrous") ? json["estrous"] : throw FormatException('Missing required property')),
1724+ interestedly: (json.containsKey("interestedly") ? json["interestedly"] : throw FormatException('Missing required property')),
1725+ katakinetomer: (json.containsKey("katakinetomer") ? json["katakinetomer"] : throw FormatException('Missing required property')),
1726+ mortification: (json.containsKey("mortification") ? json["mortification"] : throw FormatException('Missing required property')),
1727+ morula: (json.containsKey("morula") ? json["morula"] : throw FormatException('Missing required property')),
1728+ orthosymmetrical: (json.containsKey("orthosymmetrical") ? json["orthosymmetrical"] : throw FormatException('Missing required property')),
1729+ overbark: (json.containsKey("overbark") ? json["overbark"] : throw FormatException('Missing required property')),
1730+ politist: (json.containsKey("politist") ? json["politist"] : throw FormatException('Missing required property')),
1731+ qualified: (json.containsKey("qualified") ? json["qualified"] : throw FormatException('Missing required property')),
1732+ sphenomalar: (json.containsKey("sphenomalar") ? json["sphenomalar"] : throw FormatException('Missing required property')),
1733+ throatful: (json.containsKey("throatful") ? json["throatful"] : throw FormatException('Missing required property')),
1734+ transhumance: (json.containsKey("transhumance") ? json["transhumance"] : throw FormatException('Missing required property')),
1735+ triandrian: (json.containsKey("triandrian") ? json["triandrian"] : throw FormatException('Missing required property')),
1736+ unbooked: (json.containsKey("unbooked") ? json["unbooked"] : throw FormatException('Missing required property')),
17371737 );
17381738
17391739 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/priority/list.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -19,7 +19,7 @@ class TopLevel {
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
2121 data: json["data"],
22- next: json["next"] == null ? null : TopLevel.fromJson(json["next"]),
22+ next: (json.containsKey("next") ? json["next"] : throw FormatException('Missing required property')) == null ? null : TopLevel.fromJson((json.containsKey("next") ? json["next"] : throw FormatException('Missing required property'))),
2323 );
2424
2525 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/priority/nst-test-suite.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -286,7 +286,7 @@ class TopLevel {
286286 yStructureLonelyFalseJson: json["y_structure_lonely_false.json"],
287287 yStructureLonelyIntJson: json["y_structure_lonely_int.json"],
288288 yStructureLonelyNegativeRealJson: json["y_structure_lonely_negative_real.json"]?.toDouble(),
289- yStructureLonelyNullJson: json["y_structure_lonely_null.json"],
289+ yStructureLonelyNullJson: (json.containsKey("y_structure_lonely_null.json") ? json["y_structure_lonely_null.json"] : throw FormatException('Missing required property')),
290290 yStructureLonelyStringJson: json["y_structure_lonely_string.json"],
291291 yStructureLonelyTrueJson: json["y_structure_lonely_true.json"],
292292 yStructureStringEmptyJson: json["y_structure_string_empty.json"],
Test case

test/inputs/json/samples/github-events.json

1 generated file · +10 −10
Mdartdefault / TopLevel.dart+10 −10
@@ -400,10 +400,10 @@ class Issue {
400400 });
401401
402402 factory Issue.fromJson(Map<String, dynamic> json) => Issue(
403- assignee: json["assignee"],
403+ assignee: (json.containsKey("assignee") ? json["assignee"] : throw FormatException('Missing required property')),
404404 assignees: List<dynamic>.from(json["assignees"].map((x) => x)),
405405 body: json["body"],
406- closedAt: json["closed_at"] == null ? null : DateTime.parse(json["closed_at"]),
406+ closedAt: (json.containsKey("closed_at") ? json["closed_at"] : throw FormatException('Missing required property')) == null ? null : DateTime.parse((json.containsKey("closed_at") ? json["closed_at"] : throw FormatException('Missing required property'))),
407407 comments: json["comments"],
408408 commentsUrl: json["comments_url"],
409409 createdAt: DateTime.parse(json["created_at"]),
@@ -413,7 +413,7 @@ class Issue {
413413 labels: List<Label>.from(json["labels"].map((x) => Label.fromJson(x))),
414414 labelsUrl: json["labels_url"],
415415 locked: json["locked"],
416- milestone: json["milestone"] == null ? null : Milestone.fromJson(json["milestone"]),
416+ milestone: (json.containsKey("milestone") ? json["milestone"] : throw FormatException('Missing required property')) == null ? null : Milestone.fromJson((json.containsKey("milestone") ? json["milestone"] : throw FormatException('Missing required property'))),
417417 number: json["number"],
418418 pullRequest: json["pull_request"] == null ? null : IssuePullRequest.fromJson(json["pull_request"]),
419419 repositoryUrl: json["repository_url"],
@@ -518,12 +518,12 @@ class Milestone {
518518 });
519519
520520 factory Milestone.fromJson(Map<String, dynamic> json) => Milestone(
521- closedAt: json["closed_at"],
521+ closedAt: (json.containsKey("closed_at") ? json["closed_at"] : throw FormatException('Missing required property')),
522522 closedIssues: json["closed_issues"],
523523 createdAt: DateTime.parse(json["created_at"]),
524524 creator: User.fromJson(json["creator"]),
525525 description: json["description"],
526- dueOn: json["due_on"] == null ? null : DateTime.parse(json["due_on"]),
526+ dueOn: (json.containsKey("due_on") ? json["due_on"] : throw FormatException('Missing required property')) == null ? null : DateTime.parse((json.containsKey("due_on") ? json["due_on"] : throw FormatException('Missing required property'))),
527527 htmlUrl: json["html_url"],
528528 id: json["id"],
529529 labelsUrl: json["labels_url"],
@@ -671,7 +671,7 @@ class PayloadPullRequest {
671671
672672 factory PayloadPullRequest.fromJson(Map<String, dynamic> json) => PayloadPullRequest(
673673 additions: json["additions"],
674- assignee: json["assignee"],
674+ assignee: (json.containsKey("assignee") ? json["assignee"] : throw FormatException('Missing required property')),
675675 assignees: List<dynamic>.from(json["assignees"].map((x) => x)),
676676 base: Base.fromJson(json["base"]),
677677 body: json["body"],
@@ -692,15 +692,15 @@ class PayloadPullRequest {
692692 locked: json["locked"],
693693 maintainerCanModify: json["maintainer_can_modify"],
694694 mergeCommitSha: json["merge_commit_sha"],
695- mergeable: json["mergeable"],
695+ mergeable: (json.containsKey("mergeable") ? json["mergeable"] : throw FormatException('Missing required property')),
696696 mergeableState: json["mergeable_state"],
697697 merged: json["merged"],
698698 mergedAt: DateTime.parse(json["merged_at"]),
699699 mergedBy: User.fromJson(json["merged_by"]),
700- milestone: json["milestone"],
700+ milestone: (json.containsKey("milestone") ? json["milestone"] : throw FormatException('Missing required property')),
701701 number: json["number"],
702702 patchUrl: json["patch_url"],
703- rebaseable: json["rebaseable"],
703+ rebaseable: (json.containsKey("rebaseable") ? json["rebaseable"] : throw FormatException('Missing required property')),
704704 requestedReviewers: List<dynamic>.from(json["requested_reviewers"].map((x) => x)),
705705 reviewCommentUrl: json["review_comment_url"],
706706 reviewComments: json["review_comments"],
@@ -978,7 +978,7 @@ class BaseRepo {
978978 languagesUrl: json["languages_url"],
979979 mergesUrl: json["merges_url"],
980980 milestonesUrl: json["milestones_url"],
981- mirrorUrl: json["mirror_url"],
981+ mirrorUrl: (json.containsKey("mirror_url") ? json["mirror_url"] : throw FormatException('Missing required property')),
982982 name: json["name"],
983983 notificationsUrl: json["notifications_url"],
984984 openIssues: json["open_issues"],
Test case

test/inputs/json/samples/kitchen-sink.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -48,8 +48,8 @@ class TopLevel {
4848 doubleValue: json["doubleValue"]?.toDouble(),
4949 intValue: json["intValue"],
5050 mapValue: Map.from(json["mapValue"]).map((k, v) => MapEntry<String, int?>(k, v)),
51- nameWithSpaces: json["name with spaces"],
52- nullValue: json["nullValue"],
51+ nameWithSpaces: (json.containsKey("name with spaces") ? json["name with spaces"] : throw FormatException('Missing required property')),
52+ nullValue: (json.containsKey("nullValue") ? json["nullValue"] : throw FormatException('Missing required property')),
5353 nullableMapValue: Map.from(json["nullableMapValue"]).map((k, v) => MapEntry<String, int?>(k, v)),
5454 people: List<PersonElement>.from(json["people"].map((x) => PersonElement.fromJson(x))),
5555 person: PurplePerson.fromJson(json["person"]),
Test case

test/inputs/json/samples/null-safe.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -41,7 +41,7 @@ class Item {
4141 address: json["address"] == null ? null : Address.fromJson(json["address"]),
4242 createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"]),
4343 name: json["name"],
44- sex: json["sex"],
44+ sex: (json.containsKey("sex") ? json["sex"] : throw FormatException('Missing required property')),
4545 );
4646
4747 Map<String, dynamic> toJson() => {
Test case

test/inputs/json/samples/pokedex.json

1 generated file · +1 −1
Mdartdefault / TopLevel.dart+1 −1
@@ -71,7 +71,7 @@ class Pokemon {
7171 height: json["height"],
7272 id: json["id"],
7373 img: json["img"],
74- multipliers: json["multipliers"] == null ? null : List<double>.from(json["multipliers"]!.map((x) => x?.toDouble())),
74+ multipliers: (json.containsKey("multipliers") ? json["multipliers"] : throw FormatException('Missing required property')) == null ? null : List<double>.from((json.containsKey("multipliers") ? json["multipliers"] : throw FormatException('Missing required property'))!.map((x) => x?.toDouble())),
7575 name: json["name"],
7676 nextEvolution: json["next_evolution"] == null ? null : List<Evolution>.from(json["next_evolution"]!.map((x) => Evolution.fromJson(x))),
7777 num: json["num"],
Test case

test/inputs/json/samples/reddit.json

1 generated file · +19 −19
Mdartdefault / TopLevel.dart+19 −19
@@ -43,7 +43,7 @@ class TopLevelData {
4343
4444 factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData(
4545 after: json["after"],
46- before: json["before"],
46+ before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')),
4747 children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))),
4848 modhash: json["modhash"],
4949 );
@@ -214,14 +214,14 @@ class ChildData {
214214 });
215215
216216 factory ChildData.fromJson(Map<String, dynamic> json) => ChildData(
217- approvedAtUtc: json["approved_at_utc"],
218- approvedBy: json["approved_by"],
217+ approvedAtUtc: (json.containsKey("approved_at_utc") ? json["approved_at_utc"] : throw FormatException('Missing required property')),
218+ approvedBy: (json.containsKey("approved_by") ? json["approved_by"] : throw FormatException('Missing required property')),
219219 archived: json["archived"],
220220 author: json["author"],
221- authorFlairCssClass: json["author_flair_css_class"],
222- authorFlairText: json["author_flair_text"],
223- bannedAtUtc: json["banned_at_utc"],
224- bannedBy: json["banned_by"],
221+ authorFlairCssClass: (json.containsKey("author_flair_css_class") ? json["author_flair_css_class"] : throw FormatException('Missing required property')),
222+ authorFlairText: (json.containsKey("author_flair_text") ? json["author_flair_text"] : throw FormatException('Missing required property')),
223+ bannedAtUtc: (json.containsKey("banned_at_utc") ? json["banned_at_utc"] : throw FormatException('Missing required property')),
224+ bannedBy: (json.containsKey("banned_by") ? json["banned_by"] : throw FormatException('Missing required property')),
225225 brandSafe: json["brand_safe"],
226226 canGild: json["can_gild"],
227227 canModPost: json["can_mod_post"],
@@ -229,7 +229,7 @@ class ChildData {
229229 contestMode: json["contest_mode"],
230230 created: json["created"],
231231 createdUtc: json["created_utc"],
232- distinguished: json["distinguished"],
232+ distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')),
233233 domain: domainValues.map[json["domain"]]!,
234234 downs: json["downs"],
235235 edited: json["edited"],
@@ -239,37 +239,37 @@ class ChildData {
239239 id: json["id"],
240240 isSelf: json["is_self"],
241241 isVideo: json["is_video"],
242- likes: json["likes"],
243- linkFlairCssClass: json["link_flair_css_class"],
244- linkFlairText: json["link_flair_text"],
242+ likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')),
243+ linkFlairCssClass: (json.containsKey("link_flair_css_class") ? json["link_flair_css_class"] : throw FormatException('Missing required property')),
244+ linkFlairText: (json.containsKey("link_flair_text") ? json["link_flair_text"] : throw FormatException('Missing required property')),
245245 locked: json["locked"],
246- media: json["media"],
246+ media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')),
247247 mediaEmbed: MediaEmbed.fromJson(json["media_embed"]),
248248 modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)),
249249 name: json["name"],
250250 numComments: json["num_comments"],
251- numReports: json["num_reports"],
251+ numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')),
252252 over18: json["over_18"],
253253 parentWhitelistStatus: whitelistStatusValues.map[json["parent_whitelist_status"]]!,
254254 permalink: json["permalink"],
255255 postHint: postHintValues.map[json["post_hint"]]!,
256256 preview: Preview.fromJson(json["preview"]),
257257 quarantine: json["quarantine"],
258- removalReason: json["removal_reason"],
259- reportReasons: json["report_reasons"],
258+ removalReason: (json.containsKey("removal_reason") ? json["removal_reason"] : throw FormatException('Missing required property')),
259+ reportReasons: (json.containsKey("report_reasons") ? json["report_reasons"] : throw FormatException('Missing required property')),
260260 saved: json["saved"],
261261 score: json["score"],
262- secureMedia: json["secure_media"],
262+ secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')),
263263 secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]),
264264 selftext: json["selftext"],
265- selftextHtml: json["selftext_html"],
265+ selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')),
266266 spoiler: json["spoiler"],
267267 stickied: json["stickied"],
268268 subreddit: subredditValues.map[json["subreddit"]]!,
269269 subredditId: subredditIdValues.map[json["subreddit_id"]]!,
270270 subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!,
271271 subredditType: subredditTypeValues.map[json["subreddit_type"]]!,
272- suggestedSort: json["suggested_sort"],
272+ suggestedSort: (json.containsKey("suggested_sort") ? json["suggested_sort"] : throw FormatException('Missing required property')),
273273 thumbnail: json["thumbnail"],
274274 thumbnailHeight: json["thumbnail_height"],
275275 thumbnailWidth: json["thumbnail_width"],
@@ -277,7 +277,7 @@ class ChildData {
277277 ups: json["ups"],
278278 url: json["url"],
279279 userReports: List<dynamic>.from(json["user_reports"].map((x) => x)),
280- viewCount: json["view_count"],
280+ viewCount: (json.containsKey("view_count") ? json["view_count"] : throw FormatException('Missing required property')),
281281 visited: json["visited"],
282282 whitelistStatus: whitelistStatusValues.map[json["whitelist_status"]]!,
283283 );
Test case

test/inputs/json/samples/spotify-album.json

1 generated file · +2 −2
Mdartdefault / TopLevel.dart+2 −2
@@ -223,9 +223,9 @@ class Tracks {
223223 href: json["href"],
224224 items: List<Item>.from(json["items"].map((x) => Item.fromJson(x))),
225225 limit: json["limit"],
226- next: json["next"],
226+ next: (json.containsKey("next") ? json["next"] : throw FormatException('Missing required property')),
227227 offset: json["offset"],
228- previous: json["previous"],
228+ previous: (json.containsKey("previous") ? json["previous"] : throw FormatException('Missing required property')),
229229 total: json["total"],
230230 );
Test case

test/inputs/json/samples/us-senators.json

1 generated file · +5 −5
Mdartdefault / TopLevel.dart+5 −5
@@ -102,14 +102,14 @@ class Object {
102102 });
103103
104104 factory Object.fromJson(Map<String, dynamic> json) => Object(
105- caucus: json["caucus"] == null ? null : partyValues.map[json["caucus"]]!,
105+ caucus: (json.containsKey("caucus") ? json["caucus"] : throw FormatException('Missing required property')) == null ? null : partyValues.map[(json.containsKey("caucus") ? json["caucus"] : throw FormatException('Missing required property'))]!,
106106 congressNumbers: List<int>.from(json["congress_numbers"].map((x) => x)),
107107 current: json["current"],
108108 description: json["description"],
109- district: json["district"],
109+ district: (json.containsKey("district") ? json["district"] : throw FormatException('Missing required property')),
110110 enddate: DateTime.parse(json["enddate"]),
111111 extra: Extra.fromJson(json["extra"]),
112- leadershipTitle: json["leadership_title"],
112+ leadershipTitle: (json.containsKey("leadership_title") ? json["leadership_title"] : throw FormatException('Missing required property')),
113113 party: partyValues.map[json["party"]]!,
114114 person: Person.fromJson(json["person"]),
115115 phone: json["phone"],
@@ -251,8 +251,8 @@ class Person {
251251 osid: json["osid"],
252252 pvsid: json["pvsid"],
253253 sortname: json["sortname"],
254- twitterid: json["twitterid"],
255- youtubeid: json["youtubeid"],
254+ twitterid: (json.containsKey("twitterid") ? json["twitterid"] : throw FormatException('Missing required property')),
255+ youtubeid: (json.containsKey("youtubeid") ? json["youtubeid"] : throw FormatException('Missing required property')),
256256 );
257257
258258 Map<String, dynamic> toJson() => {
Test case

test/inputs/schema/any.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -18,7 +18,7 @@ class TopLevel {
1818 });
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
21- foo: json["foo"],
21+ foo: (json.containsKey("foo") ? json["foo"] : throw FormatException('Missing required property')),
2222 values: Map.from(json["values"]).map((k, v) => MapEntry<String, dynamic>(k, v)),
2323 );
Test case

test/inputs/schema/bool-string.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -30,7 +30,7 @@ class TopLevel {
3030 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
3131 arrNullable: json["arrNullable"] == null ? null : List<String?>.from(json["arrNullable"]!.map((x) => x)),
3232 arrOne: json["arrOne"] == null ? null : List<String>.from(json["arrOne"]!.map((x) => x)),
33- nullable: json["nullable"],
33+ nullable: (json.containsKey("nullable") ? json["nullable"] : throw FormatException('Missing required property')),
3434 one: json["one"],
3535 optional: json["optional"],
3636 unionWithBool: json["unionWithBool"],
Test case

test/inputs/schema/direct-union.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -35,7 +35,7 @@ class Thing {
3535
3636 factory Thing.fromJson(Map<String, dynamic> json) => Thing(
3737 optional: json["optional"],
38- required: json["required"],
38+ required: (json.containsKey("required") ? json["required"] : throw FormatException('Missing required property')),
3939 );
4040
4141 Map<String, dynamic> toJson() => {
Test case

test/inputs/schema/enum-with-null.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -16,7 +16,7 @@ class TopLevel {
1616 });
1717
1818 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
19- topLevelEnum: json["enum"] == null ? null : enumValues.map[json["enum"]]!,
19+ topLevelEnum: (json.containsKey("enum") ? json["enum"] : throw FormatException('Missing required property')) == null ? null : enumValues.map[(json.containsKey("enum") ? json["enum"] : throw FormatException('Missing required property'))]!,
2020 );
2121
2222 Map<String, dynamic> toJson() => {
Test case

test/inputs/schema/implicit-class-array-union.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -16,7 +16,7 @@ class TopLevel {
1616 });
1717
1818 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
19- foo: json["foo"],
19+ foo: (json.containsKey("foo") ? json["foo"] : throw FormatException('Missing required property')),
2020 );
2121
2222 Map<String, dynamic> toJson() => {
Test case

test/inputs/schema/integer-string.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -30,7 +30,7 @@ class TopLevel {
3030 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
3131 arrNullable: json["arrNullable"] == null ? null : List<String?>.from(json["arrNullable"]!.map((x) => x)),
3232 arrOne: json["arrOne"] == null ? null : List<String>.from(json["arrOne"]!.map((x) => x)),
33- nullable: json["nullable"],
33+ nullable: (json.containsKey("nullable") ? json["nullable"] : throw FormatException('Missing required property')),
3434 one: json["one"],
3535 optional: json["optional"],
3636 unionWithInt: json["unionWithInt"],
Test case

test/inputs/schema/required-non-properties.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -19,7 +19,7 @@ class TopLevel {
1919
2020 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
2121 foo: json["foo"],
22- bar: json["bar"],
22+ bar: (json.containsKey("bar") ? json["bar"] : throw FormatException('Missing required property')),
2323 );
2424
2525 Map<String, dynamic> toJson() => {
Test case

test/inputs/schema/strict-optional.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -16,7 +16,7 @@ class TopLevel {
1616 });
1717
1818 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
19- foo: json["foo"]?.toDouble(),
19+ foo: (json.containsKey("foo") ? json["foo"] : throw FormatException('Missing required property'))?.toDouble(),
2020 );
2121
2222 Map<String, dynamic> toJson() => {
Test case

test/inputs/schema/uuid.schema

1 generated file · +1 −1
Mschema-dartdefault / TopLevel.dart+1 −1
@@ -28,7 +28,7 @@ class TopLevel {
2828 factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
2929 arrNullable: json["arrNullable"] == null ? null : List<String?>.from(json["arrNullable"]!.map((x) => x)),
3030 arrOne: json["arrOne"] == null ? null : List<String>.from(json["arrOne"]!.map((x) => x)),
31- nullable: json["nullable"],
31+ nullable: (json.containsKey("nullable") ? json["nullable"] : throw FormatException('Missing required property')),
3232 one: json["one"],
3333 optional: json["optional"],
3434 unionWithEnum: json["unionWithEnum"],
No generated files match these filters.