Test case
1 generated file · +2 −2test/inputs/graphql/github1.graphql
Mgraphql-dartdefault / TopLevel.dart+2 −2
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -55,7 +55,7 @@ class User { | ||
| 55 | 55 | |
| 56 | 56 | factory User.fromJson(Map<String, dynamic> json) => User( |
| 57 | 57 | login: json["login"], |
| 58 | - realName: json["realName"], | |
| 58 | + realName: (json.containsKey("realName") ? json["realName"] : throw FormatException('Missing required property')), | |
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +2 −2test/inputs/graphql/github2.graphql
Mgraphql-dartdefault / TopLevel.dart+2 −2
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -75,7 +75,7 @@ class RepositoryConnection { | ||
| 75 | 75 | |
| 76 | 76 | factory RepositoryConnection.fromJson(Map<String, dynamic> json) => RepositoryConnection( |
| 77 | 77 | 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))), | |
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +3 −3test/inputs/graphql/github3.graphql
Mgraphql-dartdefault / TopLevel.dart+3 −3
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -55,7 +55,7 @@ class User { | ||
| 55 | 55 | |
| 56 | 56 | factory User.fromJson(Map<String, dynamic> json) => User( |
| 57 | 57 | 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'))), | |
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | Map<String, dynamic> toJson() => { |
| @@ -88,7 +88,7 @@ class PullRequestConnection { | ||
| 88 | 88 | }); |
| 89 | 89 | |
| 90 | 90 | 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))), | |
| 92 | 92 | ); |
| 93 | 93 | |
| 94 | 94 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +4 −4test/inputs/graphql/github4.graphql
Mgraphql-dartdefault / TopLevel.dart+4 −4
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -57,8 +57,8 @@ class User { | ||
| 57 | 57 | |
| 58 | 58 | factory User.fromJson(Map<String, dynamic> json) => User( |
| 59 | 59 | 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'))), | |
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | Map<String, dynamic> toJson() => { |
| @@ -92,7 +92,7 @@ class PullRequestConnection { | ||
| 92 | 92 | }); |
| 93 | 93 | |
| 94 | 94 | 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))), | |
| 96 | 96 | ); |
| 97 | 97 | |
| 98 | 98 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/graphql/github5.graphql
Mgraphql-dartdefault / TopLevel.dart+1 −1
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
Test case
1 generated file · +2 −2test/inputs/graphql/github6.graphql
Mgraphql-dartdefault / TopLevel.dart+2 −2
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -36,7 +36,7 @@ class Data { | ||
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | 38 | 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'))), | |
| 40 | 40 | ); |
| 41 | 41 | |
| 42 | 42 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +3 −3test/inputs/graphql/github7.graphql
Mgraphql-dartdefault / TopLevel.dart+3 −3
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -76,7 +76,7 @@ class RepositoryConnection { | ||
| 76 | 76 | }); |
| 77 | 77 | |
| 78 | 78 | 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))), | |
| 80 | 80 | ); |
| 81 | 81 | |
| 82 | 82 | Map<String, dynamic> toJson() => { |
| @@ -92,7 +92,7 @@ class RepositoryEdge { | ||
| 92 | 92 | }); |
| 93 | 93 | |
| 94 | 94 | 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'))), | |
| 96 | 96 | ); |
| 97 | 97 | |
| 98 | 98 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +4 −4test/inputs/graphql/github8.graphql
Mgraphql-dartdefault / TopLevel.dart+4 −4
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -36,7 +36,7 @@ class Data { | ||
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | 38 | 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'))), | |
| 40 | 40 | ); |
| 41 | 41 | |
| 42 | 42 | Map<String, dynamic> toJson() => { |
| @@ -57,8 +57,8 @@ class Repository { | ||
| 57 | 57 | |
| 58 | 58 | factory Repository.fromJson(Map<String, dynamic> json) => Repository( |
| 59 | 59 | 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'))), | |
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +4 −4test/inputs/graphql/github9.graphql
Mgraphql-dartdefault / TopLevel.dart+4 −4
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | 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'))), | |
| 22 | 22 | errors: json["errors"] == null ? null : List<Error>.from(json["errors"]!.map((x) => Error.fromJson(x))), |
| 23 | 23 | ); |
| 24 | 24 | |
| @@ -36,7 +36,7 @@ class Data { | ||
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | 38 | 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'))), | |
| 40 | 40 | ); |
| 41 | 41 | |
| 42 | 42 | Map<String, dynamic> toJson() => { |
| @@ -56,7 +56,7 @@ class AddReactionPayload { | ||
| 56 | 56 | }); |
| 57 | 57 | |
| 58 | 58 | factory AddReactionPayload.fromJson(Map<String, dynamic> json) => AddReactionPayload( |
| 59 | - clientMutationId: json["clientMutationId"], | |
| 59 | + clientMutationId: (json.containsKey("clientMutationId") ? json["clientMutationId"] : throw FormatException('Missing required property')), | |
| 60 | 60 | reaction: Reaction.fromJson(json["reaction"]), |
| 61 | 61 | subject: Reactable.fromJson(json["subject"]), |
| 62 | 62 | ); |
| @@ -113,7 +113,7 @@ class Reactable { | ||
| 113 | 113 | |
| 114 | 114 | factory Reactable.fromJson(Map<String, dynamic> json) => Reactable( |
| 115 | 115 | 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))), | |
| 117 | 117 | ); |
| 118 | 118 | |
| 119 | 119 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +2 −2test/inputs/json/misc/050b0.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
| 42 | 42 | |
| @@ -145,7 +145,7 @@ class OtherName { | ||
| 145 | 145 | |
| 146 | 146 | factory OtherName.fromJson(Map<String, dynamic> json) => OtherName( |
| 147 | 147 | name: json["name"], |
| 148 | - note: json["note"], | |
| 148 | + note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')), | |
| 149 | 149 | ); |
| 150 | 150 | |
| 151 | 151 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/json/misc/06bee.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
Test case
1 generated file · +1 −1test/inputs/json/misc/07c75.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
Test case
1 generated file · +7 −7test/inputs/json/misc/0a91a.json
Mdartdefault / TopLevel.dart+7 −7
| @@ -297,7 +297,7 @@ class PullRequest { | ||
| 297 | 297 | |
| 298 | 298 | factory PullRequest.fromJson(Map<String, dynamic> json) => PullRequest( |
| 299 | 299 | additions: json["additions"], |
| 300 | - assignee: json["assignee"], | |
| 300 | + assignee: (json.containsKey("assignee") ? json["assignee"] : throw FormatException('Missing required property')), | |
| 301 | 301 | assignees: List<dynamic>.from(json["assignees"].map((x) => x)), |
| 302 | 302 | base: Base.fromJson(json["base"]), |
| 303 | 303 | body: json["body"], |
| @@ -318,15 +318,15 @@ class PullRequest { | ||
| 318 | 318 | locked: json["locked"], |
| 319 | 319 | maintainerCanModify: json["maintainer_can_modify"], |
| 320 | 320 | mergeCommitSha: json["merge_commit_sha"], |
| 321 | - mergeable: json["mergeable"], | |
| 321 | + mergeable: (json.containsKey("mergeable") ? json["mergeable"] : throw FormatException('Missing required property')), | |
| 322 | 322 | mergeableState: json["mergeable_state"], |
| 323 | 323 | merged: json["merged"], |
| 324 | 324 | mergedAt: DateTime.parse(json["merged_at"]), |
| 325 | 325 | mergedBy: MergedBy.fromJson(json["merged_by"]), |
| 326 | - milestone: json["milestone"], | |
| 326 | + milestone: (json.containsKey("milestone") ? json["milestone"] : throw FormatException('Missing required property')), | |
| 327 | 327 | number: json["number"], |
| 328 | 328 | patchUrl: json["patch_url"], |
| 329 | - rebaseable: json["rebaseable"], | |
| 329 | + rebaseable: (json.containsKey("rebaseable") ? json["rebaseable"] : throw FormatException('Missing required property')), | |
| 330 | 330 | requestedReviewers: List<dynamic>.from(json["requested_reviewers"].map((x) => x)), |
| 331 | 331 | reviewCommentUrl: json["review_comment_url"], |
| 332 | 332 | reviewComments: json["review_comments"], |
| @@ -574,7 +574,7 @@ class BaseRepo { | ||
| 574 | 574 | createdAt: DateTime.parse(json["created_at"]), |
| 575 | 575 | defaultBranch: json["default_branch"], |
| 576 | 576 | deploymentsUrl: json["deployments_url"], |
| 577 | - description: json["description"], | |
| 577 | + description: (json.containsKey("description") ? json["description"] : throw FormatException('Missing required property')), | |
| 578 | 578 | downloadsUrl: json["downloads_url"], |
| 579 | 579 | eventsUrl: json["events_url"], |
| 580 | 580 | fork: json["fork"], |
| @@ -591,7 +591,7 @@ class BaseRepo { | ||
| 591 | 591 | hasPages: json["has_pages"], |
| 592 | 592 | hasProjects: json["has_projects"], |
| 593 | 593 | hasWiki: json["has_wiki"], |
| 594 | - homepage: json["homepage"], | |
| 594 | + homepage: (json.containsKey("homepage") ? json["homepage"] : throw FormatException('Missing required property')), | |
| 595 | 595 | hooksUrl: json["hooks_url"], |
| 596 | 596 | htmlUrl: json["html_url"], |
| 597 | 597 | id: json["id"], |
| @@ -604,7 +604,7 @@ class BaseRepo { | ||
| 604 | 604 | languagesUrl: json["languages_url"], |
| 605 | 605 | mergesUrl: json["merges_url"], |
| 606 | 606 | milestonesUrl: json["milestones_url"], |
| 607 | - mirrorUrl: json["mirror_url"], | |
| 607 | + mirrorUrl: (json.containsKey("mirror_url") ? json["mirror_url"] : throw FormatException('Missing required property')), | |
| 608 | 608 | name: json["name"], |
| 609 | 609 | notificationsUrl: json["notifications_url"], |
| 610 | 610 | openIssues: json["open_issues"], |
Test case
1 generated file · +2 −2test/inputs/json/misc/0b91a.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -137,8 +137,8 @@ class Result { | ||
| 137 | 137 | created: json["created"], |
| 138 | 138 | date: json["date"], |
| 139 | 139 | 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')), | |
| 142 | 142 | title: json["title"], |
| 143 | 143 | topic: List<dynamic>.from(json["topic"].map((x) => x)), |
| 144 | 144 | url: json["url"], |
Test case
1 generated file · +2 −2test/inputs/json/misc/0e0c2.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -24,7 +24,7 @@ class TopLevel { | ||
| 24 | 24 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 25 | 25 | count: json["count"], |
| 26 | 26 | next: json["next"], |
| 27 | - previous: json["previous"], | |
| 27 | + previous: (json.containsKey("previous") ? json["previous"] : throw FormatException('Missing required property')), | |
| 28 | 28 | results: List<Result>.from(json["results"].map((x) => Result.fromJson(x))), |
| 29 | 29 | ); |
| 30 | 30 | |
| @@ -82,7 +82,7 @@ class Result { | ||
| 82 | 82 | language: resultLanguageValues.map[json["language"]]!, |
| 83 | 83 | releaseDate: DateTime.parse(json["release_date"]), |
| 84 | 84 | 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)), | |
| 86 | 86 | title: json["title"], |
| 87 | 87 | videos: List<Video>.from(json["videos"].map((x) => Video.fromJson(x))), |
| 88 | 88 | voteScore: VoteScore.fromJson(json["vote_score"]), |
Test case
1 generated file · +2 −2test/inputs/json/misc/10be4.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
| 42 | 42 | |
| @@ -163,7 +163,7 @@ class OtherName { | ||
| 163 | 163 | |
| 164 | 164 | factory OtherName.fromJson(Map<String, dynamic> json) => OtherName( |
| 165 | 165 | name: json["name"], |
| 166 | - note: json["note"], | |
| 166 | + note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')), | |
| 167 | 167 | ); |
| 168 | 168 | |
| 169 | 169 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +7 −7test/inputs/json/misc/1b409.json
Mdartdefault / TopLevel.dart+7 −7
| @@ -100,7 +100,7 @@ class Object { | ||
| 100 | 100 | }); |
| 101 | 101 | |
| 102 | 102 | factory Object.fromJson(Map<String, dynamic> json) => Object( |
| 103 | - caucus: json["caucus"], | |
| 103 | + caucus: (json.containsKey("caucus") ? json["caucus"] : throw FormatException('Missing required property')), | |
| 104 | 104 | congressNumbers: List<int>.from(json["congress_numbers"].map((x) => x)), |
| 105 | 105 | current: json["current"], |
| 106 | 106 | description: json["description"], |
| @@ -108,14 +108,14 @@ class Object { | ||
| 108 | 108 | enddate: DateTime.parse(json["enddate"]), |
| 109 | 109 | extra: Extra.fromJson(json["extra"]), |
| 110 | 110 | id: json["id"], |
| 111 | - leadershipTitle: json["leadership_title"], | |
| 111 | + leadershipTitle: (json.containsKey("leadership_title") ? json["leadership_title"] : throw FormatException('Missing required property')), | |
| 112 | 112 | party: partyValues.map[json["party"]]!, |
| 113 | 113 | person: Person.fromJson(json["person"]), |
| 114 | 114 | phone: json["phone"], |
| 115 | 115 | roleType: roleTypeValues.map[json["role_type"]]!, |
| 116 | 116 | 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')), | |
| 119 | 119 | startdate: DateTime.parse(json["startdate"]), |
| 120 | 120 | state: json["state"], |
| 121 | 121 | title: titleValues.map[json["title"]]!, |
| @@ -246,10 +246,10 @@ class Person { | ||
| 246 | 246 | namemod: namemodValues.map[json["namemod"]]!, |
| 247 | 247 | nickname: json["nickname"], |
| 248 | 248 | osid: json["osid"], |
| 249 | - pvsid: json["pvsid"], | |
| 249 | + pvsid: (json.containsKey("pvsid") ? json["pvsid"] : throw FormatException('Missing required property')), | |
| 250 | 250 | 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')), | |
| 253 | 253 | ); |
| 254 | 254 | |
| 255 | 255 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +21 −21test/inputs/json/misc/27332.json
Mdartdefault / TopLevel.dart+21 −21
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -210,14 +210,14 @@ class ChildData { | ||
| 210 | 210 | }); |
| 211 | 211 | |
| 212 | 212 | 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')), | |
| 215 | 215 | archived: json["archived"], |
| 216 | 216 | 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')), | |
| 221 | 221 | brandSafe: json["brand_safe"], |
| 222 | 222 | canGild: json["can_gild"], |
| 223 | 223 | canModPost: json["can_mod_post"], |
| @@ -225,7 +225,7 @@ class ChildData { | ||
| 225 | 225 | contestMode: json["contest_mode"], |
| 226 | 226 | created: json["created"]?.toDouble(), |
| 227 | 227 | createdUtc: json["created_utc"]?.toDouble(), |
| 228 | - distinguished: json["distinguished"], | |
| 228 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 229 | 229 | domain: domainValues.map[json["domain"]]!, |
| 230 | 230 | downs: json["downs"], |
| 231 | 231 | edited: json["edited"], |
| @@ -235,44 +235,44 @@ class ChildData { | ||
| 235 | 235 | id: json["id"], |
| 236 | 236 | isSelf: json["is_self"], |
| 237 | 237 | 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')), | |
| 241 | 241 | 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'))), | |
| 243 | 243 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 244 | 244 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 245 | 245 | name: json["name"], |
| 246 | 246 | numComments: json["num_comments"], |
| 247 | - numReports: json["num_reports"], | |
| 247 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 248 | 248 | over18: json["over_18"], |
| 249 | 249 | permalink: json["permalink"], |
| 250 | 250 | postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!, |
| 251 | 251 | preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]), |
| 252 | 252 | 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')), | |
| 255 | 255 | saved: json["saved"], |
| 256 | 256 | 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'))), | |
| 258 | 258 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 259 | 259 | selftext: json["selftext"], |
| 260 | - selftextHtml: json["selftext_html"], | |
| 260 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 261 | 261 | spoiler: json["spoiler"], |
| 262 | 262 | stickied: json["stickied"], |
| 263 | 263 | subreddit: subredditValues.map[json["subreddit"]]!, |
| 264 | 264 | subredditId: subredditIdValues.map[json["subreddit_id"]]!, |
| 265 | 265 | subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!, |
| 266 | 266 | 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')), | |
| 268 | 268 | 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')), | |
| 271 | 271 | title: json["title"], |
| 272 | 272 | ups: json["ups"], |
| 273 | 273 | url: json["url"], |
| 274 | 274 | 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')), | |
| 276 | 276 | visited: json["visited"], |
| 277 | 277 | ); |
Test case
1 generated file · +20 −20test/inputs/json/misc/29f47.json
Mdartdefault / TopLevel.dart+20 −20
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -210,14 +210,14 @@ class ChildData { | ||
| 210 | 210 | }); |
| 211 | 211 | |
| 212 | 212 | 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')), | |
| 215 | 215 | archived: json["archived"], |
| 216 | 216 | 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')), | |
| 221 | 221 | brandSafe: json["brand_safe"], |
| 222 | 222 | canGild: json["can_gild"], |
| 223 | 223 | canModPost: json["can_mod_post"], |
| @@ -235,44 +235,44 @@ class ChildData { | ||
| 235 | 235 | id: json["id"], |
| 236 | 236 | isSelf: json["is_self"], |
| 237 | 237 | 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')), | |
| 241 | 241 | locked: json["locked"], |
| 242 | - media: json["media"], | |
| 242 | + media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')), | |
| 243 | 243 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 244 | 244 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 245 | 245 | name: json["name"], |
| 246 | 246 | numComments: json["num_comments"], |
| 247 | - numReports: json["num_reports"], | |
| 247 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 248 | 248 | over18: json["over_18"], |
| 249 | 249 | permalink: json["permalink"], |
| 250 | 250 | postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!, |
| 251 | 251 | preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]), |
| 252 | 252 | 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')), | |
| 255 | 255 | saved: json["saved"], |
| 256 | 256 | score: json["score"], |
| 257 | - secureMedia: json["secure_media"], | |
| 257 | + secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')), | |
| 258 | 258 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 259 | 259 | selftext: json["selftext"], |
| 260 | - selftextHtml: json["selftext_html"], | |
| 260 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 261 | 261 | spoiler: json["spoiler"], |
| 262 | 262 | stickied: json["stickied"], |
| 263 | 263 | subreddit: subredditValues.map[json["subreddit"]]!, |
| 264 | 264 | subredditId: subredditIdValues.map[json["subreddit_id"]]!, |
| 265 | 265 | subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!, |
| 266 | 266 | 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')), | |
| 268 | 268 | 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')), | |
| 271 | 271 | title: json["title"], |
| 272 | 272 | ups: json["ups"], |
| 273 | 273 | url: json["url"], |
| 274 | 274 | 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')), | |
| 276 | 276 | visited: json["visited"], |
| 277 | 277 | ); |
Test case
1 generated file · +5 −5test/inputs/json/misc/2d4e2.json
Mdartdefault / TopLevel.dart+5 −5
| @@ -104,15 +104,15 @@ class Object { | ||
| 104 | 104 | }); |
| 105 | 105 | |
| 106 | 106 | 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'))]!, | |
| 108 | 108 | congressNumbers: List<int>.from(json["congress_numbers"].map((x) => x)), |
| 109 | 109 | current: json["current"], |
| 110 | 110 | description: json["description"], |
| 111 | - district: json["district"], | |
| 111 | + district: (json.containsKey("district") ? json["district"] : throw FormatException('Missing required property')), | |
| 112 | 112 | enddate: DateTime.parse(json["enddate"]), |
| 113 | 113 | extra: Extra.fromJson(json["extra"]), |
| 114 | 114 | id: json["id"], |
| 115 | - leadershipTitle: json["leadership_title"], | |
| 115 | + leadershipTitle: (json.containsKey("leadership_title") ? json["leadership_title"] : throw FormatException('Missing required property')), | |
| 116 | 116 | party: partyValues.map[json["party"]]!, |
| 117 | 117 | person: Person.fromJson(json["person"]), |
| 118 | 118 | phone: json["phone"], |
| @@ -258,8 +258,8 @@ class Person { | ||
| 258 | 258 | osid: json["osid"], |
| 259 | 259 | pvsid: json["pvsid"], |
| 260 | 260 | 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')), | |
| 263 | 263 | ); |
| 264 | 264 | |
| 265 | 265 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/json/misc/31189.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -22,7 +22,7 @@ class TopLevel { | ||
| 22 | 22 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 23 | 23 | details: json["details"], |
| 24 | 24 | 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')), | |
| 26 | 26 | ); |
| 27 | 27 | |
| 28 | 28 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +7 −7test/inputs/json/misc/32431.json
Mdartdefault / TopLevel.dart+7 −7
| @@ -150,19 +150,19 @@ class Properties { | ||
| 150 | 150 | }); |
| 151 | 151 | |
| 152 | 152 | 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')), | |
| 155 | 155 | code: json["code"], |
| 156 | 156 | 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')), | |
| 160 | 160 | ids: json["ids"], |
| 161 | 161 | mag: json["mag"]?.toDouble(), |
| 162 | 162 | magType: magTypeValues.map[json["magType"]]!, |
| 163 | - mmi: json["mmi"], | |
| 163 | + mmi: (json.containsKey("mmi") ? json["mmi"] : throw FormatException('Missing required property')), | |
| 164 | 164 | net: json["net"], |
| 165 | - nst: json["nst"], | |
| 165 | + nst: (json.containsKey("nst") ? json["nst"] : throw FormatException('Missing required property')), | |
| 166 | 166 | place: json["place"], |
| 167 | 167 | rms: json["rms"]?.toDouble(), |
| 168 | 168 | sig: json["sig"], |
Test case
1 generated file · +1 −1test/inputs/json/misc/32d5c.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -30,7 +30,7 @@ class TopLevel { | ||
| 30 | 30 | }); |
| 31 | 31 | |
| 32 | 32 | 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'))), | |
| 34 | 34 | birthDateIsProtected: json["BirthDateIsProtected"], |
| 35 | 35 | genderTypeId: json["GenderTypeID"], |
| 36 | 36 | notes: json["Notes"], |
Test case
1 generated file · +20 −20test/inputs/json/misc/337ed.json
Mdartdefault / TopLevel.dart+20 −20
| @@ -128,35 +128,35 @@ class Result { | ||
| 128 | 128 | }); |
| 129 | 129 | |
| 130 | 130 | 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')), | |
| 134 | 134 | createdAt: DateTime.parse(json["created_at"]), |
| 135 | 135 | 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')), | |
| 138 | 138 | endDate: DateTime.parse(json["end_date"]), |
| 139 | 139 | 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')), | |
| 141 | 141 | 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')), | |
| 143 | 143 | 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')), | |
| 153 | 153 | representative: json["representative"], |
| 154 | 154 | startDate: DateTime.parse(json["start_date"]), |
| 155 | 155 | 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')), | |
| 160 | 160 | type: resultTypeValues.map[json["type"]]!, |
| 161 | 161 | updatedAt: DateTime.parse(json["updated_at"]), |
| 162 | 162 | uri: json["uri"], |
Test case
1 generated file · +3 −3test/inputs/json/misc/34702.json
Mdartdefault / TopLevel.dart+3 −3
| @@ -178,11 +178,11 @@ class FeatureProperties { | ||
| 178 | 178 | factory FeatureProperties.fromJson(Map<String, dynamic> json) => FeatureProperties( |
| 179 | 179 | division: json["division"], |
| 180 | 180 | 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'))]!, | |
| 182 | 182 | latitude: json["latitude"]?.toDouble(), |
| 183 | 183 | localGovt: json["local_govt"], |
| 184 | 184 | longitude: json["longitude"]?.toDouble(), |
| 185 | - no: json["no"], | |
| 185 | + no: (json.containsKey("no") ? json["no"] : throw FormatException('Missing required property')), | |
| 186 | 186 | phone: json["phone"]?.toDouble(), |
| 187 | 187 | postcode: json["postcode"], |
| 188 | 188 | psa: json["psa"], |
| @@ -190,7 +190,7 @@ class FeatureProperties { | ||
| 190 | 190 | station: json["station"], |
| 191 | 191 | street: json["street"], |
| 192 | 192 | 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'))]!, | |
| 194 | 194 | ); |
| 195 | 195 | |
| 196 | 196 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +21 −21test/inputs/json/misc/4d6fb.json
Mdartdefault / TopLevel.dart+21 −21
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -210,14 +210,14 @@ class ChildData { | ||
| 210 | 210 | }); |
| 211 | 211 | |
| 212 | 212 | 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')), | |
| 215 | 215 | archived: json["archived"], |
| 216 | 216 | 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')), | |
| 221 | 221 | brandSafe: json["brand_safe"], |
| 222 | 222 | canGild: json["can_gild"], |
| 223 | 223 | canModPost: json["can_mod_post"], |
| @@ -225,7 +225,7 @@ class ChildData { | ||
| 225 | 225 | contestMode: json["contest_mode"], |
| 226 | 226 | created: json["created"]?.toDouble(), |
| 227 | 227 | createdUtc: json["created_utc"]?.toDouble(), |
| 228 | - distinguished: json["distinguished"], | |
| 228 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 229 | 229 | domain: json["domain"], |
| 230 | 230 | downs: json["downs"], |
| 231 | 231 | edited: json["edited"], |
| @@ -235,44 +235,44 @@ class ChildData { | ||
| 235 | 235 | id: json["id"], |
| 236 | 236 | isSelf: json["is_self"], |
| 237 | 237 | 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')), | |
| 241 | 241 | 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'))), | |
| 243 | 243 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 244 | 244 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 245 | 245 | name: json["name"], |
| 246 | 246 | numComments: json["num_comments"], |
| 247 | - numReports: json["num_reports"], | |
| 247 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 248 | 248 | over18: json["over_18"], |
| 249 | 249 | permalink: json["permalink"], |
| 250 | 250 | postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!, |
| 251 | 251 | preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]), |
| 252 | 252 | 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')), | |
| 255 | 255 | saved: json["saved"], |
| 256 | 256 | 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'))), | |
| 258 | 258 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 259 | 259 | selftext: json["selftext"], |
| 260 | - selftextHtml: json["selftext_html"], | |
| 260 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 261 | 261 | spoiler: json["spoiler"], |
| 262 | 262 | stickied: json["stickied"], |
| 263 | 263 | subreddit: subredditValues.map[json["subreddit"]]!, |
| 264 | 264 | subredditId: subredditIdValues.map[json["subreddit_id"]]!, |
| 265 | 265 | subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!, |
| 266 | 266 | 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')), | |
| 268 | 268 | 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')), | |
| 271 | 271 | title: json["title"], |
| 272 | 272 | ups: json["ups"], |
| 273 | 273 | url: json["url"], |
| 274 | 274 | 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')), | |
| 276 | 276 | visited: json["visited"], |
| 277 | 277 | ); |
Test case
1 generated file · +2 −2test/inputs/json/misc/570ec.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
| 42 | 42 | |
| @@ -115,7 +115,7 @@ class OtherName { | ||
| 115 | 115 | |
| 116 | 116 | factory OtherName.fromJson(Map<String, dynamic> json) => OtherName( |
| 117 | 117 | name: json["name"], |
| 118 | - note: json["note"], | |
| 118 | + note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')), | |
| 119 | 119 | ); |
| 120 | 120 | |
| 121 | 121 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/json/misc/66121.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
Test case
1 generated file · +2 −2test/inputs/json/misc/6c155.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -138,7 +138,7 @@ class Result { | ||
| 138 | 138 | date: json["date"], |
| 139 | 139 | image: List<dynamic>.from(json["image"].map((x) => x)), |
| 140 | 140 | location: Location.fromJson(json["location"]), |
| 141 | - teaser: json["teaser"], | |
| 141 | + teaser: (json.containsKey("teaser") ? json["teaser"] : throw FormatException('Missing required property')), | |
| 142 | 142 | title: json["title"], |
| 143 | 143 | topic: List<dynamic>.from(json["topic"].map((x) => x)), |
| 144 | 144 | url: json["url"], |
| @@ -218,7 +218,7 @@ class Location { | ||
| 218 | 218 | phoneNumber: json["phone_number"], |
| 219 | 219 | phoneNumberExtension: json["phone_number_extension"], |
| 220 | 220 | postalCode: json["postal_code"], |
| 221 | - subPremise: json["sub_premise"], | |
| 221 | + subPremise: (json.containsKey("sub_premise") ? json["sub_premise"] : throw FormatException('Missing required property')), | |
| 222 | 222 | thoroughfare: json["thoroughfare"], |
| 223 | 223 | ); |
Test case
1 generated file · +21 −21test/inputs/json/misc/6de06.json
Mdartdefault / TopLevel.dart+21 −21
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -210,14 +210,14 @@ class ChildData { | ||
| 210 | 210 | }); |
| 211 | 211 | |
| 212 | 212 | 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')), | |
| 215 | 215 | archived: json["archived"], |
| 216 | 216 | 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')), | |
| 221 | 221 | brandSafe: json["brand_safe"], |
| 222 | 222 | canGild: json["can_gild"], |
| 223 | 223 | canModPost: json["can_mod_post"], |
| @@ -225,7 +225,7 @@ class ChildData { | ||
| 225 | 225 | contestMode: json["contest_mode"], |
| 226 | 226 | created: json["created"]?.toDouble(), |
| 227 | 227 | createdUtc: json["created_utc"]?.toDouble(), |
| 228 | - distinguished: json["distinguished"], | |
| 228 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 229 | 229 | domain: json["domain"], |
| 230 | 230 | downs: json["downs"], |
| 231 | 231 | edited: json["edited"], |
| @@ -235,44 +235,44 @@ class ChildData { | ||
| 235 | 235 | id: json["id"], |
| 236 | 236 | isSelf: json["is_self"], |
| 237 | 237 | 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')), | |
| 241 | 241 | 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'))), | |
| 243 | 243 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 244 | 244 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 245 | 245 | name: json["name"], |
| 246 | 246 | numComments: json["num_comments"], |
| 247 | - numReports: json["num_reports"], | |
| 247 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 248 | 248 | over18: json["over_18"], |
| 249 | 249 | permalink: json["permalink"], |
| 250 | 250 | postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!, |
| 251 | 251 | preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]), |
| 252 | 252 | 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')), | |
| 255 | 255 | saved: json["saved"], |
| 256 | 256 | 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'))), | |
| 258 | 258 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 259 | 259 | selftext: json["selftext"], |
| 260 | - selftextHtml: json["selftext_html"], | |
| 260 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 261 | 261 | spoiler: json["spoiler"], |
| 262 | 262 | stickied: json["stickied"], |
| 263 | 263 | subreddit: json["subreddit"], |
| 264 | 264 | subredditId: json["subreddit_id"], |
| 265 | 265 | subredditNamePrefixed: json["subreddit_name_prefixed"], |
| 266 | 266 | 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')), | |
| 268 | 268 | 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')), | |
| 271 | 271 | title: json["title"], |
| 272 | 272 | ups: json["ups"], |
| 273 | 273 | url: json["url"], |
| 274 | 274 | 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')), | |
| 276 | 276 | visited: json["visited"], |
| 277 | 277 | ); |
Test case
1 generated file · +15 −15test/inputs/json/misc/734ad.json
Mdartdefault / TopLevel.dart+15 −15
| @@ -180,14 +180,14 @@ class Result { | ||
| 180 | 180 | }); |
| 181 | 181 | |
| 182 | 182 | factory Result.fromJson(Map<String, dynamic> json) => Result( |
| 183 | - acronym: json["acronym"], | |
| 183 | + acronym: (json.containsKey("acronym") ? json["acronym"] : throw FormatException('Missing required property')), | |
| 184 | 184 | activityConsultCommittees: json["activity_consult_committees"], |
| 185 | 185 | activityEuLegislative: json["activity_eu_legislative"], |
| 186 | 186 | activityExpertGroups: json["activity_expert_groups"], |
| 187 | 187 | activityHighLevelGroups: json["activity_high_level_groups"], |
| 188 | 188 | activityIndustryForums: json["activity_industry_forums"], |
| 189 | 189 | activityInterGroups: json["activity_inter_groups"], |
| 190 | - activityOther: json["activity_other"], | |
| 190 | + activityOther: (json.containsKey("activity_other") ? json["activity_other"] : throw FormatException('Missing required property')), | |
| 191 | 191 | activityRelevantComm: json["activity_relevant_comm"], |
| 192 | 192 | beOfficeCountry: json["be_office_country"], |
| 193 | 193 | beOfficeLat: json["be_office_lat"]?.toDouble(), |
| @@ -204,11 +204,11 @@ class Result { | ||
| 204 | 204 | goals: json["goals"], |
| 205 | 205 | head: json["head"], |
| 206 | 206 | 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(), | |
| 209 | 209 | 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')), | |
| 212 | 212 | headOfficeStreet: json["head_office_street"], |
| 213 | 213 | headOfficeTown: json["head_office_town"], |
| 214 | 214 | id: json["id"], |
| @@ -220,16 +220,16 @@ class Result { | ||
| 220 | 220 | mainCategory: json["main_category"], |
| 221 | 221 | mainCategoryTitle: json["main_category_title"], |
| 222 | 222 | 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')), | |
| 227 | 227 | membersFte: json["members_fte"]?.toDouble(), |
| 228 | 228 | 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')), | |
| 233 | 233 | registrationDate: DateTime.parse(json["registration_date"]), |
| 234 | 234 | status: statusValues.map[json["status"]]!, |
| 235 | 235 | structureMembers: json["structure_members"], |
| @@ -237,7 +237,7 @@ class Result { | ||
| 237 | 237 | subCategoryTitle: json["sub_category_title"], |
| 238 | 238 | updatedAt: DateTime.parse(json["updated_at"]), |
| 239 | 239 | 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')), | |
| 241 | 241 | ); |
| 242 | 242 | |
| 243 | 243 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/json/misc/7eb30.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -24,7 +24,7 @@ class TopLevel { | ||
| 24 | 24 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 25 | 25 | count: json["count"], |
| 26 | 26 | next: json["next"], |
| 27 | - previous: json["previous"], | |
| 27 | + previous: (json.containsKey("previous") ? json["previous"] : throw FormatException('Missing required property')), | |
| 28 | 28 | results: List<Result>.from(json["results"].map((x) => Result.fromJson(x))), |
| 29 | 29 | ); |
Test case
1 generated file · +3 −3test/inputs/json/misc/7f568.json
Mdartdefault / TopLevel.dart+3 −3
| @@ -50,7 +50,7 @@ class TopLevel { | ||
| 50 | 50 | commentsUrl: json["comments_url"], |
| 51 | 51 | commitsUrl: json["commits_url"], |
| 52 | 52 | createdAt: DateTime.parse(json["created_at"]), |
| 53 | - description: json["description"], | |
| 53 | + description: (json.containsKey("description") ? json["description"] : throw FormatException('Missing required property')), | |
| 54 | 54 | files: Map.from(json["files"]).map((k, v) => MapEntry<String, FileValue>(k, FileValue.fromJson(v))), |
| 55 | 55 | forksUrl: json["forks_url"], |
| 56 | 56 | gitPullUrl: json["git_pull_url"], |
| @@ -61,7 +61,7 @@ class TopLevel { | ||
| 61 | 61 | truncated: json["truncated"], |
| 62 | 62 | updatedAt: DateTime.parse(json["updated_at"]), |
| 63 | 63 | url: json["url"], |
| 64 | - user: json["user"], | |
| 64 | + user: (json.containsKey("user") ? json["user"] : throw FormatException('Missing required property')), | |
| 65 | 65 | ); |
| 66 | 66 | |
| 67 | 67 | Map<String, dynamic> toJson() => { |
| @@ -101,7 +101,7 @@ class FileValue { | ||
| 101 | 101 | |
| 102 | 102 | factory FileValue.fromJson(Map<String, dynamic> json) => FileValue( |
| 103 | 103 | 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'))]!, | |
| 105 | 105 | rawUrl: json["raw_url"], |
| 106 | 106 | size: json["size"], |
| 107 | 107 | type: typeValues.map[json["type"]]!, |
Test case
1 generated file · +1 −1test/inputs/json/misc/80aff.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -82,7 +82,7 @@ class Result { | ||
| 82 | 82 | id: json["id"], |
| 83 | 83 | items: json["items"], |
| 84 | 84 | name: json["name"], |
| 85 | - parent: json["parent"], | |
| 85 | + parent: (json.containsKey("parent") ? json["parent"] : throw FormatException('Missing required property')), | |
| 86 | 86 | updatedAt: DateTime.parse(json["updated_at"]), |
| 87 | 87 | uri: json["uri"], |
| 88 | 88 | ); |
Test case
1 generated file · +18 −18test/inputs/json/misc/8592b.json
Mdartdefault / TopLevel.dart+18 −18
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -210,14 +210,14 @@ class ChildData { | ||
| 210 | 210 | }); |
| 211 | 211 | |
| 212 | 212 | 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')), | |
| 215 | 215 | archived: json["archived"], |
| 216 | 216 | 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')), | |
| 221 | 221 | brandSafe: json["brand_safe"], |
| 222 | 222 | canGild: json["can_gild"], |
| 223 | 223 | canModPost: json["can_mod_post"], |
| @@ -225,7 +225,7 @@ class ChildData { | ||
| 225 | 225 | contestMode: json["contest_mode"], |
| 226 | 226 | created: json["created"]?.toDouble(), |
| 227 | 227 | createdUtc: json["created_utc"]?.toDouble(), |
| 228 | - distinguished: json["distinguished"], | |
| 228 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 229 | 229 | domain: json["domain"], |
| 230 | 230 | downs: json["downs"], |
| 231 | 231 | edited: json["edited"], |
| @@ -235,29 +235,29 @@ class ChildData { | ||
| 235 | 235 | id: json["id"], |
| 236 | 236 | isSelf: json["is_self"], |
| 237 | 237 | isVideo: json["is_video"], |
| 238 | - likes: json["likes"], | |
| 238 | + likes: (json.containsKey("likes") ? json["likes"] : throw FormatException('Missing required property')), | |
| 239 | 239 | linkFlairCssClass: json["link_flair_css_class"], |
| 240 | 240 | linkFlairText: json["link_flair_text"], |
| 241 | 241 | locked: json["locked"], |
| 242 | - media: json["media"], | |
| 242 | + media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')), | |
| 243 | 243 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 244 | 244 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 245 | 245 | name: json["name"], |
| 246 | 246 | numComments: json["num_comments"], |
| 247 | - numReports: json["num_reports"], | |
| 247 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 248 | 248 | over18: json["over_18"], |
| 249 | 249 | permalink: json["permalink"], |
| 250 | 250 | postHint: json["post_hint"] == null ? null : postHintValues.map[json["post_hint"]]!, |
| 251 | 251 | preview: json["preview"] == null ? null : Preview.fromJson(json["preview"]), |
| 252 | 252 | 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')), | |
| 255 | 255 | saved: json["saved"], |
| 256 | 256 | score: json["score"], |
| 257 | - secureMedia: json["secure_media"], | |
| 257 | + secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')), | |
| 258 | 258 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 259 | 259 | selftext: json["selftext"], |
| 260 | - selftextHtml: json["selftext_html"], | |
| 260 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 261 | 261 | spoiler: json["spoiler"], |
| 262 | 262 | stickied: json["stickied"], |
| 263 | 263 | subreddit: subredditValues.map[json["subreddit"]]!, |
| @@ -266,13 +266,13 @@ class ChildData { | ||
| 266 | 266 | subredditType: subredditTypeValues.map[json["subreddit_type"]]!, |
| 267 | 267 | suggestedSort: suggestedSortValues.map[json["suggested_sort"]]!, |
| 268 | 268 | 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')), | |
| 271 | 271 | title: json["title"], |
| 272 | 272 | ups: json["ups"], |
| 273 | 273 | url: json["url"], |
| 274 | 274 | 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')), | |
| 276 | 276 | visited: json["visited"], |
| 277 | 277 | ); |
Test case
1 generated file · +1 −1test/inputs/json/misc/996bd.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
Test case
1 generated file · +1 −1test/inputs/json/misc/9a503.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
Test case
1 generated file · +2 −2test/inputs/json/misc/9ac3b.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -92,9 +92,9 @@ class Result { | ||
| 92 | 92 | id: json["id"], |
| 93 | 93 | lastName: json["last_name"], |
| 94 | 94 | name: json["name"], |
| 95 | - position: json["position"], | |
| 95 | + position: (json.containsKey("position") ? json["position"] : throw FormatException('Missing required property')), | |
| 96 | 96 | 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'))]!, | |
| 98 | 98 | updatedAt: DateTime.parse(json["updated_at"]), |
| 99 | 99 | uri: json["uri"], |
| 100 | 100 | ); |
Test case
1 generated file · +1 −1test/inputs/json/misc/9eed5.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
Test case
1 generated file · +2 −2test/inputs/json/misc/ad8be.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -36,7 +36,7 @@ class TopLevel { | ||
| 36 | 36 | links: List<Link>.from(json["links"].map((x) => Link.fromJson(x))), |
| 37 | 37 | name: json["name"], |
| 38 | 38 | 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')), | |
| 40 | 40 | text: List<Text>.from(json["text"].map((x) => Text.fromJson(x))), |
| 41 | 41 | ); |
| 42 | 42 | |
| @@ -163,7 +163,7 @@ class OtherName { | ||
| 163 | 163 | |
| 164 | 164 | factory OtherName.fromJson(Map<String, dynamic> json) => OtherName( |
| 165 | 165 | name: json["name"], |
| 166 | - note: json["note"], | |
| 166 | + note: (json.containsKey("note") ? json["note"] : throw FormatException('Missing required property')), | |
| 167 | 167 | ); |
| 168 | 168 | |
| 169 | 169 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +19 −19test/inputs/json/misc/ae7f0.json
Mdartdefault / TopLevel.dart+19 −19
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -202,14 +202,14 @@ class ChildData { | ||
| 202 | 202 | }); |
| 203 | 203 | |
| 204 | 204 | 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')), | |
| 207 | 207 | archived: json["archived"], |
| 208 | 208 | 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')), | |
| 213 | 213 | brandSafe: json["brand_safe"], |
| 214 | 214 | canGild: json["can_gild"], |
| 215 | 215 | canModPost: json["can_mod_post"], |
| @@ -217,7 +217,7 @@ class ChildData { | ||
| 217 | 217 | contestMode: json["contest_mode"], |
| 218 | 218 | created: json["created"]?.toDouble(), |
| 219 | 219 | createdUtc: json["created_utc"]?.toDouble(), |
| 220 | - distinguished: json["distinguished"], | |
| 220 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 221 | 221 | domain: domainValues.map[json["domain"]]!, |
| 222 | 222 | downs: json["downs"], |
| 223 | 223 | edited: json["edited"], |
| @@ -227,40 +227,40 @@ class ChildData { | ||
| 227 | 227 | id: json["id"], |
| 228 | 228 | isSelf: json["is_self"], |
| 229 | 229 | 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')), | |
| 233 | 233 | locked: json["locked"], |
| 234 | - media: json["media"], | |
| 234 | + media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')), | |
| 235 | 235 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 236 | 236 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 237 | 237 | name: json["name"], |
| 238 | 238 | numComments: json["num_comments"], |
| 239 | - numReports: json["num_reports"], | |
| 239 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 240 | 240 | over18: json["over_18"], |
| 241 | 241 | permalink: json["permalink"], |
| 242 | 242 | 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')), | |
| 245 | 245 | saved: json["saved"], |
| 246 | 246 | score: json["score"], |
| 247 | - secureMedia: json["secure_media"], | |
| 247 | + secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')), | |
| 248 | 248 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 249 | 249 | selftext: json["selftext"], |
| 250 | - selftextHtml: json["selftext_html"], | |
| 250 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 251 | 251 | spoiler: json["spoiler"], |
| 252 | 252 | stickied: json["stickied"], |
| 253 | 253 | subreddit: subredditValues.map[json["subreddit"]]!, |
| 254 | 254 | subredditId: subredditIdValues.map[json["subreddit_id"]]!, |
| 255 | 255 | subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!, |
| 256 | 256 | 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')), | |
| 258 | 258 | thumbnail: json["thumbnail"], |
| 259 | 259 | title: json["title"], |
| 260 | 260 | ups: json["ups"], |
| 261 | 261 | url: json["url"], |
| 262 | 262 | 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')), | |
| 264 | 264 | visited: json["visited"], |
| 265 | 265 | ); |
Test case
1 generated file · +21 −21test/inputs/json/misc/af2d1.json
Mdartdefault / TopLevel.dart+21 −21
| @@ -222,44 +222,44 @@ class FeatureProperties { | ||
| 222 | 222 | }); |
| 223 | 223 | |
| 224 | 224 | 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'))]!, | |
| 226 | 226 | area: json["area_"]?.toDouble(), |
| 227 | 227 | assetNumb: json["asset_numb"], |
| 228 | - comments: json["comments"], | |
| 228 | + comments: (json.containsKey("comments") ? json["comments"] : throw FormatException('Missing required property')), | |
| 229 | 229 | 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')), | |
| 234 | 234 | 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'))]!, | |
| 239 | 239 | historicC: json["historic_c"], |
| 240 | 240 | 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'))]!, | |
| 244 | 244 | material: materialValues.map[json["material"]]!, |
| 245 | 245 | miPrinx: json["mi_prinx"], |
| 246 | 246 | miSymbolo: miSymboloValues.map[json["mi_symbolo"]]!, |
| 247 | 247 | 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')), | |
| 251 | 251 | recId: json["rec_id"], |
| 252 | - recordCre: json["record_cre"], | |
| 252 | + recordCre: (json.containsKey("record_cre") ? json["record_cre"] : throw FormatException('Missing required property')), | |
| 253 | 253 | shapeArea: json["shape_area"]?.toDouble(), |
| 254 | 254 | shapeLeng: json["shape_leng"]?.toDouble(), |
| 255 | 255 | status: statusValues.map[json["status"]]!, |
| 256 | - surveyNum: json["survey_num"], | |
| 256 | + surveyNum: (json.containsKey("survey_num") ? json["survey_num"] : throw FormatException('Missing required property')), | |
| 257 | 257 | toeRl: json["toe_rl"]?.toDouble(), |
| 258 | 258 | 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'))]!, | |
| 260 | 260 | 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')), | |
| 263 | 263 | ); |
| 264 | 264 | |
| 265 | 265 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +19 −19test/inputs/json/misc/be234.json
Mdartdefault / TopLevel.dart+19 −19
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -210,14 +210,14 @@ class ChildData { | ||
| 210 | 210 | }); |
| 211 | 211 | |
| 212 | 212 | 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')), | |
| 215 | 215 | archived: json["archived"], |
| 216 | 216 | 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')), | |
| 221 | 221 | brandSafe: json["brand_safe"], |
| 222 | 222 | canGild: json["can_gild"], |
| 223 | 223 | canModPost: json["can_mod_post"], |
| @@ -225,7 +225,7 @@ class ChildData { | ||
| 225 | 225 | contestMode: json["contest_mode"], |
| 226 | 226 | created: json["created"]?.toDouble(), |
| 227 | 227 | createdUtc: json["created_utc"]?.toDouble(), |
| 228 | - distinguished: json["distinguished"], | |
| 228 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 229 | 229 | domain: domainValues.map[json["domain"]]!, |
| 230 | 230 | downs: json["downs"], |
| 231 | 231 | edited: json["edited"], |
| @@ -235,36 +235,36 @@ class ChildData { | ||
| 235 | 235 | id: json["id"], |
| 236 | 236 | isSelf: json["is_self"], |
| 237 | 237 | 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')), | |
| 241 | 241 | 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'))), | |
| 243 | 243 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 244 | 244 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 245 | 245 | name: json["name"], |
| 246 | 246 | numComments: json["num_comments"], |
| 247 | - numReports: json["num_reports"], | |
| 247 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 248 | 248 | over18: json["over_18"], |
| 249 | 249 | permalink: json["permalink"], |
| 250 | 250 | postHint: postHintValues.map[json["post_hint"]]!, |
| 251 | 251 | preview: Preview.fromJson(json["preview"]), |
| 252 | 252 | 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')), | |
| 255 | 255 | saved: json["saved"], |
| 256 | 256 | 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'))), | |
| 258 | 258 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 259 | 259 | selftext: json["selftext"], |
| 260 | - selftextHtml: json["selftext_html"], | |
| 260 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 261 | 261 | spoiler: json["spoiler"], |
| 262 | 262 | stickied: json["stickied"], |
| 263 | 263 | subreddit: subredditValues.map[json["subreddit"]]!, |
| 264 | 264 | subredditId: subredditIdValues.map[json["subreddit_id"]]!, |
| 265 | 265 | subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!, |
| 266 | 266 | 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')), | |
| 268 | 268 | thumbnail: json["thumbnail"], |
| 269 | 269 | thumbnailHeight: json["thumbnail_height"], |
| 270 | 270 | thumbnailWidth: json["thumbnail_width"], |
| @@ -272,7 +272,7 @@ class ChildData { | ||
| 272 | 272 | ups: json["ups"], |
| 273 | 273 | url: json["url"], |
| 274 | 274 | 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')), | |
| 276 | 276 | visited: json["visited"], |
| 277 | 277 | ); |
Test case
1 generated file · +1 −1test/inputs/json/misc/d23d5.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -76,7 +76,7 @@ class Result { | ||
| 76 | 76 | }); |
| 77 | 77 | |
| 78 | 78 | factory Result.fromJson(Map<String, dynamic> json) => Result( |
| 79 | - acronym: json["acronym"], | |
| 79 | + acronym: (json.containsKey("acronym") ? json["acronym"] : throw FormatException('Missing required property')), | |
| 80 | 80 | createdAt: DateTime.parse(json["created_at"]), |
| 81 | 81 | id: json["id"], |
| 82 | 82 | name: json["name"], |
Test case
1 generated file · +5 −5test/inputs/json/misc/dec3a.json
Mdartdefault / TopLevel.dart+5 −5
| @@ -151,17 +151,17 @@ class Result { | ||
| 151 | 151 | body: json["body"], |
| 152 | 152 | changed: json["changed"], |
| 153 | 153 | 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')), | |
| 156 | 156 | 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')), | |
| 158 | 158 | language: json["language"], |
| 159 | 159 | location: Location.fromJson(json["location"]), |
| 160 | 160 | numPositions: json["num_positions"], |
| 161 | 161 | position: json["position"], |
| 162 | 162 | practiceArea: json["practice_area"], |
| 163 | 163 | qualifications: json["qualifications"], |
| 164 | - relocationExpenses: json["relocation_expenses"], | |
| 164 | + relocationExpenses: (json.containsKey("relocation_expenses") ? json["relocation_expenses"] : throw FormatException('Missing required property')), | |
| 165 | 165 | salary: json["salary"], |
| 166 | 166 | title: json["title"], |
| 167 | 167 | travel: json["travel"], |
| @@ -250,7 +250,7 @@ class Location { | ||
| 250 | 250 | phoneNumber: json["phone_number"], |
| 251 | 251 | phoneNumberExtension: json["phone_number_extension"], |
| 252 | 252 | postalCode: json["postal_code"], |
| 253 | - subPremise: json["sub_premise"], | |
| 253 | + subPremise: (json.containsKey("sub_premise") ? json["sub_premise"] : throw FormatException('Missing required property')), | |
| 254 | 254 | thoroughfare: json["thoroughfare"], |
| 255 | 255 | ); |
Test case
1 generated file · +19 −19test/inputs/json/misc/f22f5.json
Mdartdefault / TopLevel.dart+19 −19
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -202,14 +202,14 @@ class ChildData { | ||
| 202 | 202 | }); |
| 203 | 203 | |
| 204 | 204 | 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')), | |
| 207 | 207 | archived: json["archived"], |
| 208 | 208 | 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')), | |
| 213 | 213 | brandSafe: json["brand_safe"], |
| 214 | 214 | canGild: json["can_gild"], |
| 215 | 215 | canModPost: json["can_mod_post"], |
| @@ -217,7 +217,7 @@ class ChildData { | ||
| 217 | 217 | contestMode: json["contest_mode"], |
| 218 | 218 | created: json["created"]?.toDouble(), |
| 219 | 219 | createdUtc: json["created_utc"]?.toDouble(), |
| 220 | - distinguished: json["distinguished"], | |
| 220 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 221 | 221 | domain: json["domain"], |
| 222 | 222 | downs: json["downs"], |
| 223 | 223 | edited: json["edited"], |
| @@ -227,40 +227,40 @@ class ChildData { | ||
| 227 | 227 | id: json["id"], |
| 228 | 228 | isSelf: json["is_self"], |
| 229 | 229 | 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')), | |
| 233 | 233 | locked: json["locked"], |
| 234 | - media: json["media"], | |
| 234 | + media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')), | |
| 235 | 235 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 236 | 236 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 237 | 237 | name: json["name"], |
| 238 | 238 | numComments: json["num_comments"], |
| 239 | - numReports: json["num_reports"], | |
| 239 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 240 | 240 | over18: json["over_18"], |
| 241 | 241 | permalink: json["permalink"], |
| 242 | 242 | 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')), | |
| 245 | 245 | saved: json["saved"], |
| 246 | 246 | score: json["score"], |
| 247 | - secureMedia: json["secure_media"], | |
| 247 | + secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')), | |
| 248 | 248 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 249 | 249 | selftext: json["selftext"], |
| 250 | - selftextHtml: json["selftext_html"], | |
| 250 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 251 | 251 | spoiler: json["spoiler"], |
| 252 | 252 | stickied: json["stickied"], |
| 253 | 253 | subreddit: subredditValues.map[json["subreddit"]]!, |
| 254 | 254 | subredditId: subredditIdValues.map[json["subreddit_id"]]!, |
| 255 | 255 | subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!, |
| 256 | 256 | 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')), | |
| 258 | 258 | thumbnail: json["thumbnail"], |
| 259 | 259 | title: json["title"], |
| 260 | 260 | ups: json["ups"], |
| 261 | 261 | url: json["url"], |
| 262 | 262 | 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')), | |
| 264 | 264 | visited: json["visited"], |
| 265 | 265 | ); |
Test case
1 generated file · +2 −2test/inputs/json/priority/bug2590.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -36,8 +36,8 @@ class Invoice { | ||
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | 38 | 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'))), | |
| 41 | 41 | name: json["name"], |
| 42 | 42 | ); |
Test case
2 generated files · +324 −324test/inputs/json/priority/combinations1.json
Mdartdefault / TopLevel.dart+162 −162
| @@ -238,26 +238,26 @@ class CerographClass { | ||
| 238 | 238 | }); |
| 239 | 239 | |
| 240 | 240 | 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')), | |
| 261 | 261 | ); |
| 262 | 262 | |
| 263 | 263 | Map<String, dynamic> toJson() => { |
| @@ -416,7 +416,7 @@ class CimeliaClass { | ||
| 416 | 416 | chirotherium: json["Chirotherium"], |
| 417 | 417 | disdiapason: json["disdiapason"], |
| 418 | 418 | homocerc: json["homocerc"], |
| 419 | - nonbookish: json["nonbookish"], | |
| 419 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 420 | 420 | ); |
| 421 | 421 | |
| 422 | 422 | Map<String, dynamic> toJson() => { |
| @@ -586,26 +586,26 @@ class CredulityClass { | ||
| 586 | 586 | }); |
| 587 | 587 | |
| 588 | 588 | 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')), | |
| 609 | 609 | ); |
| 610 | 610 | |
| 611 | 611 | Map<String, dynamic> toJson() => { |
| @@ -678,26 +678,26 @@ class DeruralizeClass { | ||
| 678 | 678 | }); |
| 679 | 679 | |
| 680 | 680 | 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')), | |
| 701 | 701 | ); |
| 702 | 702 | |
| 703 | 703 | Map<String, dynamic> toJson() => { |
| @@ -770,26 +770,26 @@ class DiaereseClass { | ||
| 770 | 770 | }); |
| 771 | 771 | |
| 772 | 772 | 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')), | |
| 793 | 793 | ); |
| 794 | 794 | |
| 795 | 795 | Map<String, dynamic> toJson() => { |
| @@ -862,26 +862,26 @@ class Encrust { | ||
| 862 | 862 | }); |
| 863 | 863 | |
| 864 | 864 | 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')), | |
| 885 | 885 | ); |
| 886 | 886 | |
| 887 | 887 | Map<String, dynamic> toJson() => { |
| @@ -954,26 +954,26 @@ class FagginglyClass { | ||
| 954 | 954 | }); |
| 955 | 955 | |
| 956 | 956 | 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')), | |
| 977 | 977 | ); |
| 978 | 978 | |
| 979 | 979 | Map<String, dynamic> toJson() => { |
| @@ -1046,26 +1046,26 @@ class FenkClass { | ||
| 1046 | 1046 | }); |
| 1047 | 1047 | |
| 1048 | 1048 | 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')), | |
| 1069 | 1069 | ); |
| 1070 | 1070 | |
| 1071 | 1071 | Map<String, dynamic> toJson() => { |
| @@ -1138,26 +1138,26 @@ class FlagmakingClass { | ||
| 1138 | 1138 | }); |
| 1139 | 1139 | |
| 1140 | 1140 | 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')), | |
| 1161 | 1161 | ); |
| 1162 | 1162 | |
| 1163 | 1163 | Map<String, dynamic> toJson() => { |
| @@ -1316,7 +1316,7 @@ class Interacinar { | ||
| 1316 | 1316 | benefactorship: json["benefactorship"], |
| 1317 | 1317 | triseriatim: json["triseriatim"], |
| 1318 | 1318 | tubbing: json["tubbing"], |
| 1319 | - untrimmed: json["untrimmed"], | |
| 1319 | + untrimmed: (json.containsKey("untrimmed") ? json["untrimmed"] : throw FormatException('Missing required property')), | |
| 1320 | 1320 | ); |
| 1321 | 1321 | |
| 1322 | 1322 | Map<String, dynamic> toJson() => { |
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+162 −162
| @@ -238,26 +238,26 @@ class CerographClass { | ||
| 238 | 238 | }); |
| 239 | 239 | |
| 240 | 240 | 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')), | |
| 261 | 261 | ); |
| 262 | 262 | |
| 263 | 263 | Map<String, dynamic> toJson() => { |
| @@ -416,7 +416,7 @@ class CimeliaClass { | ||
| 416 | 416 | chirotherium: json["Chirotherium"], |
| 417 | 417 | disdiapason: json["disdiapason"], |
| 418 | 418 | homocerc: json["homocerc"], |
| 419 | - nonbookish: json["nonbookish"], | |
| 419 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 420 | 420 | ); |
| 421 | 421 | |
| 422 | 422 | Map<String, dynamic> toJson() => { |
| @@ -586,26 +586,26 @@ class CredulityClass { | ||
| 586 | 586 | }); |
| 587 | 587 | |
| 588 | 588 | 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')), | |
| 609 | 609 | ); |
| 610 | 610 | |
| 611 | 611 | Map<String, dynamic> toJson() => { |
| @@ -678,26 +678,26 @@ class DeruralizeClass { | ||
| 678 | 678 | }); |
| 679 | 679 | |
| 680 | 680 | 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')), | |
| 701 | 701 | ); |
| 702 | 702 | |
| 703 | 703 | Map<String, dynamic> toJson() => { |
| @@ -770,26 +770,26 @@ class DiaereseClass { | ||
| 770 | 770 | }); |
| 771 | 771 | |
| 772 | 772 | 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')), | |
| 793 | 793 | ); |
| 794 | 794 | |
| 795 | 795 | Map<String, dynamic> toJson() => { |
| @@ -862,26 +862,26 @@ class Encrust { | ||
| 862 | 862 | }); |
| 863 | 863 | |
| 864 | 864 | 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')), | |
| 885 | 885 | ); |
| 886 | 886 | |
| 887 | 887 | Map<String, dynamic> toJson() => { |
| @@ -954,26 +954,26 @@ class FagginglyClass { | ||
| 954 | 954 | }); |
| 955 | 955 | |
| 956 | 956 | 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')), | |
| 977 | 977 | ); |
| 978 | 978 | |
| 979 | 979 | Map<String, dynamic> toJson() => { |
| @@ -1046,26 +1046,26 @@ class FenkClass { | ||
| 1046 | 1046 | }); |
| 1047 | 1047 | |
| 1048 | 1048 | 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')), | |
| 1069 | 1069 | ); |
| 1070 | 1070 | |
| 1071 | 1071 | Map<String, dynamic> toJson() => { |
| @@ -1138,26 +1138,26 @@ class FlagmakingClass { | ||
| 1138 | 1138 | }); |
| 1139 | 1139 | |
| 1140 | 1140 | 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')), | |
| 1161 | 1161 | ); |
| 1162 | 1162 | |
| 1163 | 1163 | Map<String, dynamic> toJson() => { |
| @@ -1316,7 +1316,7 @@ class Interacinar { | ||
| 1316 | 1316 | benefactorship: json["benefactorship"], |
| 1317 | 1317 | triseriatim: json["triseriatim"], |
| 1318 | 1318 | tubbing: json["tubbing"], |
| 1319 | - untrimmed: json["untrimmed"], | |
| 1319 | + untrimmed: (json.containsKey("untrimmed") ? json["untrimmed"] : throw FormatException('Missing required property')), | |
| 1320 | 1320 | ); |
| 1321 | 1321 | |
| 1322 | 1322 | Map<String, dynamic> toJson() => { |
Test case
2 generated files · +244 −244test/inputs/json/priority/combinations2.json
Mdartdefault / TopLevel.dart+122 −122
| @@ -116,7 +116,7 @@ class TopLevel { | ||
| 116 | 116 | andriana: List<String?>.from(json["Andriana"].map((x) => x)), |
| 117 | 117 | ankee: List<dynamic>.from(json["ankee"].map((x) => x)), |
| 118 | 118 | 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')), | |
| 120 | 120 | ansarie: List<dynamic>.from(json["Ansarie"].map((x) => x)), |
| 121 | 121 | aphasia: List<dynamic>.from(json["aphasia"].map((x) => x)), |
| 122 | 122 | asprawl: List<dynamic>.from(json["asprawl"].map((x) => x)), |
| @@ -246,26 +246,26 @@ class AlleviateClass { | ||
| 246 | 246 | }); |
| 247 | 247 | |
| 248 | 248 | 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')), | |
| 269 | 269 | ); |
| 270 | 270 | |
| 271 | 271 | Map<String, dynamic> toJson() => { |
| @@ -312,7 +312,7 @@ class Rebecca { | ||
| 312 | 312 | chirotherium: json["Chirotherium"], |
| 313 | 313 | disdiapason: json["disdiapason"], |
| 314 | 314 | homocerc: json["homocerc"], |
| 315 | - nonbookish: json["nonbookish"], | |
| 315 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 316 | 316 | ); |
| 317 | 317 | |
| 318 | 318 | Map<String, dynamic> toJson() => { |
| @@ -482,26 +482,26 @@ class AnkeeClass { | ||
| 482 | 482 | }); |
| 483 | 483 | |
| 484 | 484 | 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')), | |
| 505 | 505 | ); |
| 506 | 506 | |
| 507 | 507 | Map<String, dynamic> toJson() => { |
| @@ -574,26 +574,26 @@ class AnsarieClass { | ||
| 574 | 574 | }); |
| 575 | 575 | |
| 576 | 576 | 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')), | |
| 597 | 597 | ); |
| 598 | 598 | |
| 599 | 599 | Map<String, dynamic> toJson() => { |
| @@ -666,26 +666,26 @@ class ChytridiaceaeClass { | ||
| 666 | 666 | }); |
| 667 | 667 | |
| 668 | 668 | 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')), | |
| 689 | 689 | ); |
| 690 | 690 | |
| 691 | 691 | Map<String, dynamic> toJson() => { |
| @@ -870,26 +870,26 @@ class GryphosaurusClass { | ||
| 870 | 870 | }); |
| 871 | 871 | |
| 872 | 872 | 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')), | |
| 893 | 893 | ); |
| 894 | 894 | |
| 895 | 895 | Map<String, dynamic> toJson() => { |
| @@ -1074,26 +1074,26 @@ class OskarClass { | ||
| 1074 | 1074 | }); |
| 1075 | 1075 | |
| 1076 | 1076 | 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')), | |
| 1097 | 1097 | ); |
| 1098 | 1098 | |
| 1099 | 1099 | Map<String, dynamic> toJson() => { |
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+122 −122
| @@ -116,7 +116,7 @@ class TopLevel { | ||
| 116 | 116 | andriana: List<String?>.from(json["Andriana"].map((x) => x)), |
| 117 | 117 | ankee: List<dynamic>.from(json["ankee"].map((x) => x)), |
| 118 | 118 | 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')), | |
| 120 | 120 | ansarie: List<dynamic>.from(json["Ansarie"].map((x) => x)), |
| 121 | 121 | aphasia: List<dynamic>.from(json["aphasia"].map((x) => x)), |
| 122 | 122 | asprawl: List<dynamic>.from(json["asprawl"].map((x) => x)), |
| @@ -246,26 +246,26 @@ class AlleviateClass { | ||
| 246 | 246 | }); |
| 247 | 247 | |
| 248 | 248 | 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')), | |
| 269 | 269 | ); |
| 270 | 270 | |
| 271 | 271 | Map<String, dynamic> toJson() => { |
| @@ -312,7 +312,7 @@ class Rebecca { | ||
| 312 | 312 | chirotherium: json["Chirotherium"], |
| 313 | 313 | disdiapason: json["disdiapason"], |
| 314 | 314 | homocerc: json["homocerc"], |
| 315 | - nonbookish: json["nonbookish"], | |
| 315 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 316 | 316 | ); |
| 317 | 317 | |
| 318 | 318 | Map<String, dynamic> toJson() => { |
| @@ -482,26 +482,26 @@ class AnkeeClass { | ||
| 482 | 482 | }); |
| 483 | 483 | |
| 484 | 484 | 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')), | |
| 505 | 505 | ); |
| 506 | 506 | |
| 507 | 507 | Map<String, dynamic> toJson() => { |
| @@ -574,26 +574,26 @@ class AnsarieClass { | ||
| 574 | 574 | }); |
| 575 | 575 | |
| 576 | 576 | 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')), | |
| 597 | 597 | ); |
| 598 | 598 | |
| 599 | 599 | Map<String, dynamic> toJson() => { |
| @@ -666,26 +666,26 @@ class ChytridiaceaeClass { | ||
| 666 | 666 | }); |
| 667 | 667 | |
| 668 | 668 | 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')), | |
| 689 | 689 | ); |
| 690 | 690 | |
| 691 | 691 | Map<String, dynamic> toJson() => { |
| @@ -870,26 +870,26 @@ class GryphosaurusClass { | ||
| 870 | 870 | }); |
| 871 | 871 | |
| 872 | 872 | 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')), | |
| 893 | 893 | ); |
| 894 | 894 | |
| 895 | 895 | Map<String, dynamic> toJson() => { |
| @@ -1074,26 +1074,26 @@ class OskarClass { | ||
| 1074 | 1074 | }); |
| 1075 | 1075 | |
| 1076 | 1076 | 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')), | |
| 1097 | 1097 | ); |
| 1098 | 1098 | |
| 1099 | 1099 | Map<String, dynamic> toJson() => { |
Test case
2 generated files · +284 −284test/inputs/json/priority/combinations3.json
Mdartdefault / TopLevel.dart+142 −142
| @@ -234,26 +234,26 @@ class JurorClass { | ||
| 234 | 234 | }); |
| 235 | 235 | |
| 236 | 236 | 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')), | |
| 257 | 257 | ); |
| 258 | 258 | |
| 259 | 259 | Map<String, dynamic> toJson() => { |
| @@ -326,26 +326,26 @@ class LadronismClass { | ||
| 326 | 326 | }); |
| 327 | 327 | |
| 328 | 328 | 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')), | |
| 349 | 349 | ); |
| 350 | 350 | |
| 351 | 351 | Map<String, dynamic> toJson() => { |
| @@ -418,26 +418,26 @@ class LandlubberlyClass { | ||
| 418 | 418 | }); |
| 419 | 419 | |
| 420 | 420 | 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')), | |
| 441 | 441 | ); |
| 442 | 442 | |
| 443 | 443 | Map<String, dynamic> toJson() => { |
| @@ -788,7 +788,7 @@ class MonaziteClass { | ||
| 788 | 788 | chirotherium: json["Chirotherium"], |
| 789 | 789 | disdiapason: json["disdiapason"], |
| 790 | 790 | homocerc: json["homocerc"], |
| 791 | - nonbookish: json["nonbookish"], | |
| 791 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 792 | 792 | ); |
| 793 | 793 | |
| 794 | 794 | Map<String, dynamic> toJson() => { |
| @@ -932,7 +932,7 @@ class Noncontributing { | ||
| 932 | 932 | jolterhead: json["jolterhead"]?.toDouble(), |
| 933 | 933 | sauternes: json["sauternes"], |
| 934 | 934 | sparsely: json["sparsely"], |
| 935 | - unrequested: json["unrequested"], | |
| 935 | + unrequested: (json.containsKey("unrequested") ? json["unrequested"] : throw FormatException('Missing required property')), | |
| 936 | 936 | ); |
| 937 | 937 | |
| 938 | 938 | Map<String, dynamic> toJson() => { |
| @@ -990,26 +990,26 @@ class OccupationalistClass { | ||
| 990 | 990 | }); |
| 991 | 991 | |
| 992 | 992 | 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')), | |
| 1013 | 1013 | ); |
| 1014 | 1014 | |
| 1015 | 1015 | Map<String, dynamic> toJson() => { |
| @@ -1082,26 +1082,26 @@ class OutrivalClass { | ||
| 1082 | 1082 | }); |
| 1083 | 1083 | |
| 1084 | 1084 | 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')), | |
| 1105 | 1105 | ); |
| 1106 | 1106 | |
| 1107 | 1107 | Map<String, dynamic> toJson() => { |
| @@ -1398,26 +1398,26 @@ class PotwhiskyClass { | ||
| 1398 | 1398 | }); |
| 1399 | 1399 | |
| 1400 | 1400 | 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')), | |
| 1421 | 1421 | ); |
| 1422 | 1422 | |
| 1423 | 1423 | Map<String, dynamic> toJson() => { |
| @@ -1490,26 +1490,26 @@ class PrefreshmanClass { | ||
| 1490 | 1490 | }); |
| 1491 | 1491 | |
| 1492 | 1492 | 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')), | |
| 1513 | 1513 | ); |
| 1514 | 1514 | |
| 1515 | 1515 | Map<String, dynamic> toJson() => { |
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+142 −142
| @@ -234,26 +234,26 @@ class JurorClass { | ||
| 234 | 234 | }); |
| 235 | 235 | |
| 236 | 236 | 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')), | |
| 257 | 257 | ); |
| 258 | 258 | |
| 259 | 259 | Map<String, dynamic> toJson() => { |
| @@ -326,26 +326,26 @@ class LadronismClass { | ||
| 326 | 326 | }); |
| 327 | 327 | |
| 328 | 328 | 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')), | |
| 349 | 349 | ); |
| 350 | 350 | |
| 351 | 351 | Map<String, dynamic> toJson() => { |
| @@ -418,26 +418,26 @@ class LandlubberlyClass { | ||
| 418 | 418 | }); |
| 419 | 419 | |
| 420 | 420 | 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')), | |
| 441 | 441 | ); |
| 442 | 442 | |
| 443 | 443 | Map<String, dynamic> toJson() => { |
| @@ -788,7 +788,7 @@ class MonaziteClass { | ||
| 788 | 788 | chirotherium: json["Chirotherium"], |
| 789 | 789 | disdiapason: json["disdiapason"], |
| 790 | 790 | homocerc: json["homocerc"], |
| 791 | - nonbookish: json["nonbookish"], | |
| 791 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 792 | 792 | ); |
| 793 | 793 | |
| 794 | 794 | Map<String, dynamic> toJson() => { |
| @@ -932,7 +932,7 @@ class Noncontributing { | ||
| 932 | 932 | jolterhead: json["jolterhead"]?.toDouble(), |
| 933 | 933 | sauternes: json["sauternes"], |
| 934 | 934 | sparsely: json["sparsely"], |
| 935 | - unrequested: json["unrequested"], | |
| 935 | + unrequested: (json.containsKey("unrequested") ? json["unrequested"] : throw FormatException('Missing required property')), | |
| 936 | 936 | ); |
| 937 | 937 | |
| 938 | 938 | Map<String, dynamic> toJson() => { |
| @@ -990,26 +990,26 @@ class OccupationalistClass { | ||
| 990 | 990 | }); |
| 991 | 991 | |
| 992 | 992 | 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')), | |
| 1013 | 1013 | ); |
| 1014 | 1014 | |
| 1015 | 1015 | Map<String, dynamic> toJson() => { |
| @@ -1082,26 +1082,26 @@ class OutrivalClass { | ||
| 1082 | 1082 | }); |
| 1083 | 1083 | |
| 1084 | 1084 | 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')), | |
| 1105 | 1105 | ); |
| 1106 | 1106 | |
| 1107 | 1107 | Map<String, dynamic> toJson() => { |
| @@ -1398,26 +1398,26 @@ class PotwhiskyClass { | ||
| 1398 | 1398 | }); |
| 1399 | 1399 | |
| 1400 | 1400 | 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')), | |
| 1421 | 1421 | ); |
| 1422 | 1422 | |
| 1423 | 1423 | Map<String, dynamic> toJson() => { |
| @@ -1490,26 +1490,26 @@ class PrefreshmanClass { | ||
| 1490 | 1490 | }); |
| 1491 | 1491 | |
| 1492 | 1492 | 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')), | |
| 1513 | 1513 | ); |
| 1514 | 1514 | |
| 1515 | 1515 | Map<String, dynamic> toJson() => { |
Test case
2 generated files · +322 −322test/inputs/json/priority/combinations4.json
Mdartdefault / TopLevel.dart+161 −161
| @@ -274,26 +274,26 @@ class PulpitismClass { | ||
| 274 | 274 | }); |
| 275 | 275 | |
| 276 | 276 | 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')), | |
| 297 | 297 | ); |
| 298 | 298 | |
| 299 | 299 | Map<String, dynamic> toJson() => { |
| @@ -366,26 +366,26 @@ class PyodermiaClass { | ||
| 366 | 366 | }); |
| 367 | 367 | |
| 368 | 368 | 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')), | |
| 389 | 389 | ); |
| 390 | 390 | |
| 391 | 391 | Map<String, dynamic> toJson() => { |
| @@ -432,7 +432,7 @@ class QuebrachineClass { | ||
| 432 | 432 | chirotherium: json["Chirotherium"], |
| 433 | 433 | disdiapason: json["disdiapason"], |
| 434 | 434 | homocerc: json["homocerc"], |
| 435 | - nonbookish: json["nonbookish"], | |
| 435 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 436 | 436 | ); |
| 437 | 437 | |
| 438 | 438 | Map<String, dynamic> toJson() => { |
| @@ -694,26 +694,26 @@ class RewriteClass { | ||
| 694 | 694 | }); |
| 695 | 695 | |
| 696 | 696 | 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')), | |
| 717 | 717 | ); |
| 718 | 718 | |
| 719 | 719 | Map<String, dynamic> toJson() => { |
| @@ -786,26 +786,26 @@ class SantirClass { | ||
| 786 | 786 | }); |
| 787 | 787 | |
| 788 | 788 | 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')), | |
| 809 | 809 | ); |
| 810 | 810 | |
| 811 | 811 | Map<String, dynamic> toJson() => { |
| @@ -990,26 +990,26 @@ class Scatty { | ||
| 990 | 990 | }); |
| 991 | 991 | |
| 992 | 992 | 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')), | |
| 1013 | 1013 | ); |
| 1014 | 1014 | |
| 1015 | 1015 | Map<String, dynamic> toJson() => { |
| @@ -1082,26 +1082,26 @@ class SisteringClass { | ||
| 1082 | 1082 | }); |
| 1083 | 1083 | |
| 1084 | 1084 | 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')), | |
| 1105 | 1105 | ); |
| 1106 | 1106 | |
| 1107 | 1107 | Map<String, dynamic> toJson() => { |
| @@ -1622,26 +1622,26 @@ class UnstressedClass { | ||
| 1622 | 1622 | }); |
| 1623 | 1623 | |
| 1624 | 1624 | 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')), | |
| 1645 | 1645 | ); |
| 1646 | 1646 | |
| 1647 | 1647 | Map<String, dynamic> toJson() => { |
| @@ -1714,26 +1714,26 @@ class WrothyClass { | ||
| 1714 | 1714 | }); |
| 1715 | 1715 | |
| 1716 | 1716 | 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')), | |
| 1737 | 1737 | ); |
| 1738 | 1738 | |
| 1739 | 1739 | Map<String, dynamic> toJson() => { |
Mdartfinal-props-false--58a791807e0c / TopLevel.dart+161 −161
| @@ -274,26 +274,26 @@ class PulpitismClass { | ||
| 274 | 274 | }); |
| 275 | 275 | |
| 276 | 276 | 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')), | |
| 297 | 297 | ); |
| 298 | 298 | |
| 299 | 299 | Map<String, dynamic> toJson() => { |
| @@ -366,26 +366,26 @@ class PyodermiaClass { | ||
| 366 | 366 | }); |
| 367 | 367 | |
| 368 | 368 | 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')), | |
| 389 | 389 | ); |
| 390 | 390 | |
| 391 | 391 | Map<String, dynamic> toJson() => { |
| @@ -432,7 +432,7 @@ class QuebrachineClass { | ||
| 432 | 432 | chirotherium: json["Chirotherium"], |
| 433 | 433 | disdiapason: json["disdiapason"], |
| 434 | 434 | homocerc: json["homocerc"], |
| 435 | - nonbookish: json["nonbookish"], | |
| 435 | + nonbookish: (json.containsKey("nonbookish") ? json["nonbookish"] : throw FormatException('Missing required property')), | |
| 436 | 436 | ); |
| 437 | 437 | |
| 438 | 438 | Map<String, dynamic> toJson() => { |
| @@ -694,26 +694,26 @@ class RewriteClass { | ||
| 694 | 694 | }); |
| 695 | 695 | |
| 696 | 696 | 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')), | |
| 717 | 717 | ); |
| 718 | 718 | |
| 719 | 719 | Map<String, dynamic> toJson() => { |
| @@ -786,26 +786,26 @@ class SantirClass { | ||
| 786 | 786 | }); |
| 787 | 787 | |
| 788 | 788 | 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')), | |
| 809 | 809 | ); |
| 810 | 810 | |
| 811 | 811 | Map<String, dynamic> toJson() => { |
| @@ -990,26 +990,26 @@ class Scatty { | ||
| 990 | 990 | }); |
| 991 | 991 | |
| 992 | 992 | 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')), | |
| 1013 | 1013 | ); |
| 1014 | 1014 | |
| 1015 | 1015 | Map<String, dynamic> toJson() => { |
| @@ -1082,26 +1082,26 @@ class SisteringClass { | ||
| 1082 | 1082 | }); |
| 1083 | 1083 | |
| 1084 | 1084 | 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')), | |
| 1105 | 1105 | ); |
| 1106 | 1106 | |
| 1107 | 1107 | Map<String, dynamic> toJson() => { |
| @@ -1622,26 +1622,26 @@ class UnstressedClass { | ||
| 1622 | 1622 | }); |
| 1623 | 1623 | |
| 1624 | 1624 | 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')), | |
| 1645 | 1645 | ); |
| 1646 | 1646 | |
| 1647 | 1647 | Map<String, dynamic> toJson() => { |
| @@ -1714,26 +1714,26 @@ class WrothyClass { | ||
| 1714 | 1714 | }); |
| 1715 | 1715 | |
| 1716 | 1716 | 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')), | |
| 1737 | 1737 | ); |
| 1738 | 1738 | |
| 1739 | 1739 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/json/priority/list.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -19,7 +19,7 @@ class TopLevel { | ||
| 19 | 19 | |
| 20 | 20 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 21 | 21 | 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'))), | |
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/json/priority/nst-test-suite.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -286,7 +286,7 @@ class TopLevel { | ||
| 286 | 286 | yStructureLonelyFalseJson: json["y_structure_lonely_false.json"], |
| 287 | 287 | yStructureLonelyIntJson: json["y_structure_lonely_int.json"], |
| 288 | 288 | 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')), | |
| 290 | 290 | yStructureLonelyStringJson: json["y_structure_lonely_string.json"], |
| 291 | 291 | yStructureLonelyTrueJson: json["y_structure_lonely_true.json"], |
| 292 | 292 | yStructureStringEmptyJson: json["y_structure_string_empty.json"], |
Test case
1 generated file · +10 −10test/inputs/json/samples/github-events.json
Mdartdefault / TopLevel.dart+10 −10
| @@ -400,10 +400,10 @@ class Issue { | ||
| 400 | 400 | }); |
| 401 | 401 | |
| 402 | 402 | factory Issue.fromJson(Map<String, dynamic> json) => Issue( |
| 403 | - assignee: json["assignee"], | |
| 403 | + assignee: (json.containsKey("assignee") ? json["assignee"] : throw FormatException('Missing required property')), | |
| 404 | 404 | assignees: List<dynamic>.from(json["assignees"].map((x) => x)), |
| 405 | 405 | 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'))), | |
| 407 | 407 | comments: json["comments"], |
| 408 | 408 | commentsUrl: json["comments_url"], |
| 409 | 409 | createdAt: DateTime.parse(json["created_at"]), |
| @@ -413,7 +413,7 @@ class Issue { | ||
| 413 | 413 | labels: List<Label>.from(json["labels"].map((x) => Label.fromJson(x))), |
| 414 | 414 | labelsUrl: json["labels_url"], |
| 415 | 415 | 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'))), | |
| 417 | 417 | number: json["number"], |
| 418 | 418 | pullRequest: json["pull_request"] == null ? null : IssuePullRequest.fromJson(json["pull_request"]), |
| 419 | 419 | repositoryUrl: json["repository_url"], |
| @@ -518,12 +518,12 @@ class Milestone { | ||
| 518 | 518 | }); |
| 519 | 519 | |
| 520 | 520 | 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')), | |
| 522 | 522 | closedIssues: json["closed_issues"], |
| 523 | 523 | createdAt: DateTime.parse(json["created_at"]), |
| 524 | 524 | creator: User.fromJson(json["creator"]), |
| 525 | 525 | 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'))), | |
| 527 | 527 | htmlUrl: json["html_url"], |
| 528 | 528 | id: json["id"], |
| 529 | 529 | labelsUrl: json["labels_url"], |
| @@ -671,7 +671,7 @@ class PayloadPullRequest { | ||
| 671 | 671 | |
| 672 | 672 | factory PayloadPullRequest.fromJson(Map<String, dynamic> json) => PayloadPullRequest( |
| 673 | 673 | additions: json["additions"], |
| 674 | - assignee: json["assignee"], | |
| 674 | + assignee: (json.containsKey("assignee") ? json["assignee"] : throw FormatException('Missing required property')), | |
| 675 | 675 | assignees: List<dynamic>.from(json["assignees"].map((x) => x)), |
| 676 | 676 | base: Base.fromJson(json["base"]), |
| 677 | 677 | body: json["body"], |
| @@ -692,15 +692,15 @@ class PayloadPullRequest { | ||
| 692 | 692 | locked: json["locked"], |
| 693 | 693 | maintainerCanModify: json["maintainer_can_modify"], |
| 694 | 694 | mergeCommitSha: json["merge_commit_sha"], |
| 695 | - mergeable: json["mergeable"], | |
| 695 | + mergeable: (json.containsKey("mergeable") ? json["mergeable"] : throw FormatException('Missing required property')), | |
| 696 | 696 | mergeableState: json["mergeable_state"], |
| 697 | 697 | merged: json["merged"], |
| 698 | 698 | mergedAt: DateTime.parse(json["merged_at"]), |
| 699 | 699 | mergedBy: User.fromJson(json["merged_by"]), |
| 700 | - milestone: json["milestone"], | |
| 700 | + milestone: (json.containsKey("milestone") ? json["milestone"] : throw FormatException('Missing required property')), | |
| 701 | 701 | number: json["number"], |
| 702 | 702 | patchUrl: json["patch_url"], |
| 703 | - rebaseable: json["rebaseable"], | |
| 703 | + rebaseable: (json.containsKey("rebaseable") ? json["rebaseable"] : throw FormatException('Missing required property')), | |
| 704 | 704 | requestedReviewers: List<dynamic>.from(json["requested_reviewers"].map((x) => x)), |
| 705 | 705 | reviewCommentUrl: json["review_comment_url"], |
| 706 | 706 | reviewComments: json["review_comments"], |
| @@ -978,7 +978,7 @@ class BaseRepo { | ||
| 978 | 978 | languagesUrl: json["languages_url"], |
| 979 | 979 | mergesUrl: json["merges_url"], |
| 980 | 980 | milestonesUrl: json["milestones_url"], |
| 981 | - mirrorUrl: json["mirror_url"], | |
| 981 | + mirrorUrl: (json.containsKey("mirror_url") ? json["mirror_url"] : throw FormatException('Missing required property')), | |
| 982 | 982 | name: json["name"], |
| 983 | 983 | notificationsUrl: json["notifications_url"], |
| 984 | 984 | openIssues: json["open_issues"], |
Test case
1 generated file · +2 −2test/inputs/json/samples/kitchen-sink.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -48,8 +48,8 @@ class TopLevel { | ||
| 48 | 48 | doubleValue: json["doubleValue"]?.toDouble(), |
| 49 | 49 | intValue: json["intValue"], |
| 50 | 50 | 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')), | |
| 53 | 53 | nullableMapValue: Map.from(json["nullableMapValue"]).map((k, v) => MapEntry<String, int?>(k, v)), |
| 54 | 54 | people: List<PersonElement>.from(json["people"].map((x) => PersonElement.fromJson(x))), |
| 55 | 55 | person: PurplePerson.fromJson(json["person"]), |
Test case
1 generated file · +1 −1test/inputs/json/samples/null-safe.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -41,7 +41,7 @@ class Item { | ||
| 41 | 41 | address: json["address"] == null ? null : Address.fromJson(json["address"]), |
| 42 | 42 | createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"]), |
| 43 | 43 | name: json["name"], |
| 44 | - sex: json["sex"], | |
| 44 | + sex: (json.containsKey("sex") ? json["sex"] : throw FormatException('Missing required property')), | |
| 45 | 45 | ); |
| 46 | 46 | |
| 47 | 47 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/json/samples/pokedex.json
Mdartdefault / TopLevel.dart+1 −1
| @@ -71,7 +71,7 @@ class Pokemon { | ||
| 71 | 71 | height: json["height"], |
| 72 | 72 | id: json["id"], |
| 73 | 73 | 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())), | |
| 75 | 75 | name: json["name"], |
| 76 | 76 | nextEvolution: json["next_evolution"] == null ? null : List<Evolution>.from(json["next_evolution"]!.map((x) => Evolution.fromJson(x))), |
| 77 | 77 | num: json["num"], |
Test case
1 generated file · +19 −19test/inputs/json/samples/reddit.json
Mdartdefault / TopLevel.dart+19 −19
| @@ -43,7 +43,7 @@ class TopLevelData { | ||
| 43 | 43 | |
| 44 | 44 | factory TopLevelData.fromJson(Map<String, dynamic> json) => TopLevelData( |
| 45 | 45 | after: json["after"], |
| 46 | - before: json["before"], | |
| 46 | + before: (json.containsKey("before") ? json["before"] : throw FormatException('Missing required property')), | |
| 47 | 47 | children: List<Child>.from(json["children"].map((x) => Child.fromJson(x))), |
| 48 | 48 | modhash: json["modhash"], |
| 49 | 49 | ); |
| @@ -214,14 +214,14 @@ class ChildData { | ||
| 214 | 214 | }); |
| 215 | 215 | |
| 216 | 216 | 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')), | |
| 219 | 219 | archived: json["archived"], |
| 220 | 220 | 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')), | |
| 225 | 225 | brandSafe: json["brand_safe"], |
| 226 | 226 | canGild: json["can_gild"], |
| 227 | 227 | canModPost: json["can_mod_post"], |
| @@ -229,7 +229,7 @@ class ChildData { | ||
| 229 | 229 | contestMode: json["contest_mode"], |
| 230 | 230 | created: json["created"], |
| 231 | 231 | createdUtc: json["created_utc"], |
| 232 | - distinguished: json["distinguished"], | |
| 232 | + distinguished: (json.containsKey("distinguished") ? json["distinguished"] : throw FormatException('Missing required property')), | |
| 233 | 233 | domain: domainValues.map[json["domain"]]!, |
| 234 | 234 | downs: json["downs"], |
| 235 | 235 | edited: json["edited"], |
| @@ -239,37 +239,37 @@ class ChildData { | ||
| 239 | 239 | id: json["id"], |
| 240 | 240 | isSelf: json["is_self"], |
| 241 | 241 | 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')), | |
| 245 | 245 | locked: json["locked"], |
| 246 | - media: json["media"], | |
| 246 | + media: (json.containsKey("media") ? json["media"] : throw FormatException('Missing required property')), | |
| 247 | 247 | mediaEmbed: MediaEmbed.fromJson(json["media_embed"]), |
| 248 | 248 | modReports: List<dynamic>.from(json["mod_reports"].map((x) => x)), |
| 249 | 249 | name: json["name"], |
| 250 | 250 | numComments: json["num_comments"], |
| 251 | - numReports: json["num_reports"], | |
| 251 | + numReports: (json.containsKey("num_reports") ? json["num_reports"] : throw FormatException('Missing required property')), | |
| 252 | 252 | over18: json["over_18"], |
| 253 | 253 | parentWhitelistStatus: whitelistStatusValues.map[json["parent_whitelist_status"]]!, |
| 254 | 254 | permalink: json["permalink"], |
| 255 | 255 | postHint: postHintValues.map[json["post_hint"]]!, |
| 256 | 256 | preview: Preview.fromJson(json["preview"]), |
| 257 | 257 | 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')), | |
| 260 | 260 | saved: json["saved"], |
| 261 | 261 | score: json["score"], |
| 262 | - secureMedia: json["secure_media"], | |
| 262 | + secureMedia: (json.containsKey("secure_media") ? json["secure_media"] : throw FormatException('Missing required property')), | |
| 263 | 263 | secureMediaEmbed: MediaEmbed.fromJson(json["secure_media_embed"]), |
| 264 | 264 | selftext: json["selftext"], |
| 265 | - selftextHtml: json["selftext_html"], | |
| 265 | + selftextHtml: (json.containsKey("selftext_html") ? json["selftext_html"] : throw FormatException('Missing required property')), | |
| 266 | 266 | spoiler: json["spoiler"], |
| 267 | 267 | stickied: json["stickied"], |
| 268 | 268 | subreddit: subredditValues.map[json["subreddit"]]!, |
| 269 | 269 | subredditId: subredditIdValues.map[json["subreddit_id"]]!, |
| 270 | 270 | subredditNamePrefixed: subredditNamePrefixedValues.map[json["subreddit_name_prefixed"]]!, |
| 271 | 271 | 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')), | |
| 273 | 273 | thumbnail: json["thumbnail"], |
| 274 | 274 | thumbnailHeight: json["thumbnail_height"], |
| 275 | 275 | thumbnailWidth: json["thumbnail_width"], |
| @@ -277,7 +277,7 @@ class ChildData { | ||
| 277 | 277 | ups: json["ups"], |
| 278 | 278 | url: json["url"], |
| 279 | 279 | 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')), | |
| 281 | 281 | visited: json["visited"], |
| 282 | 282 | whitelistStatus: whitelistStatusValues.map[json["whitelist_status"]]!, |
| 283 | 283 | ); |
Test case
1 generated file · +2 −2test/inputs/json/samples/spotify-album.json
Mdartdefault / TopLevel.dart+2 −2
| @@ -223,9 +223,9 @@ class Tracks { | ||
| 223 | 223 | href: json["href"], |
| 224 | 224 | items: List<Item>.from(json["items"].map((x) => Item.fromJson(x))), |
| 225 | 225 | limit: json["limit"], |
| 226 | - next: json["next"], | |
| 226 | + next: (json.containsKey("next") ? json["next"] : throw FormatException('Missing required property')), | |
| 227 | 227 | offset: json["offset"], |
| 228 | - previous: json["previous"], | |
| 228 | + previous: (json.containsKey("previous") ? json["previous"] : throw FormatException('Missing required property')), | |
| 229 | 229 | total: json["total"], |
| 230 | 230 | ); |
Test case
1 generated file · +5 −5test/inputs/json/samples/us-senators.json
Mdartdefault / TopLevel.dart+5 −5
| @@ -102,14 +102,14 @@ class Object { | ||
| 102 | 102 | }); |
| 103 | 103 | |
| 104 | 104 | 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'))]!, | |
| 106 | 106 | congressNumbers: List<int>.from(json["congress_numbers"].map((x) => x)), |
| 107 | 107 | current: json["current"], |
| 108 | 108 | description: json["description"], |
| 109 | - district: json["district"], | |
| 109 | + district: (json.containsKey("district") ? json["district"] : throw FormatException('Missing required property')), | |
| 110 | 110 | enddate: DateTime.parse(json["enddate"]), |
| 111 | 111 | extra: Extra.fromJson(json["extra"]), |
| 112 | - leadershipTitle: json["leadership_title"], | |
| 112 | + leadershipTitle: (json.containsKey("leadership_title") ? json["leadership_title"] : throw FormatException('Missing required property')), | |
| 113 | 113 | party: partyValues.map[json["party"]]!, |
| 114 | 114 | person: Person.fromJson(json["person"]), |
| 115 | 115 | phone: json["phone"], |
| @@ -251,8 +251,8 @@ class Person { | ||
| 251 | 251 | osid: json["osid"], |
| 252 | 252 | pvsid: json["pvsid"], |
| 253 | 253 | 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')), | |
| 256 | 256 | ); |
| 257 | 257 | |
| 258 | 258 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/schema/any.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -18,7 +18,7 @@ class TopLevel { | ||
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 21 | - foo: json["foo"], | |
| 21 | + foo: (json.containsKey("foo") ? json["foo"] : throw FormatException('Missing required property')), | |
| 22 | 22 | values: Map.from(json["values"]).map((k, v) => MapEntry<String, dynamic>(k, v)), |
| 23 | 23 | ); |
Test case
1 generated file · +1 −1test/inputs/schema/bool-string.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -30,7 +30,7 @@ class TopLevel { | ||
| 30 | 30 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 31 | 31 | arrNullable: json["arrNullable"] == null ? null : List<String?>.from(json["arrNullable"]!.map((x) => x)), |
| 32 | 32 | 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')), | |
| 34 | 34 | one: json["one"], |
| 35 | 35 | optional: json["optional"], |
| 36 | 36 | unionWithBool: json["unionWithBool"], |
Test case
1 generated file · +1 −1test/inputs/schema/direct-union.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -35,7 +35,7 @@ class Thing { | ||
| 35 | 35 | |
| 36 | 36 | factory Thing.fromJson(Map<String, dynamic> json) => Thing( |
| 37 | 37 | optional: json["optional"], |
| 38 | - required: json["required"], | |
| 38 | + required: (json.containsKey("required") ? json["required"] : throw FormatException('Missing required property')), | |
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | 41 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/schema/enum-with-null.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -16,7 +16,7 @@ class TopLevel { | ||
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | 18 | 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'))]!, | |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | 22 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/schema/implicit-class-array-union.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -16,7 +16,7 @@ class TopLevel { | ||
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | 18 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 19 | - foo: json["foo"], | |
| 19 | + foo: (json.containsKey("foo") ? json["foo"] : throw FormatException('Missing required property')), | |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | 22 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/schema/integer-string.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -30,7 +30,7 @@ class TopLevel { | ||
| 30 | 30 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 31 | 31 | arrNullable: json["arrNullable"] == null ? null : List<String?>.from(json["arrNullable"]!.map((x) => x)), |
| 32 | 32 | 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')), | |
| 34 | 34 | one: json["one"], |
| 35 | 35 | optional: json["optional"], |
| 36 | 36 | unionWithInt: json["unionWithInt"], |
Test case
1 generated file · +1 −1test/inputs/schema/required-non-properties.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -19,7 +19,7 @@ class TopLevel { | ||
| 19 | 19 | |
| 20 | 20 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 21 | 21 | foo: json["foo"], |
| 22 | - bar: json["bar"], | |
| 22 | + bar: (json.containsKey("bar") ? json["bar"] : throw FormatException('Missing required property')), | |
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/schema/strict-optional.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -16,7 +16,7 @@ class TopLevel { | ||
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | 18 | 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(), | |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | 22 | Map<String, dynamic> toJson() => { |
Test case
1 generated file · +1 −1test/inputs/schema/uuid.schema
Mschema-dartdefault / TopLevel.dart+1 −1
| @@ -28,7 +28,7 @@ class TopLevel { | ||
| 28 | 28 | factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel( |
| 29 | 29 | arrNullable: json["arrNullable"] == null ? null : List<String?>.from(json["arrNullable"]!.map((x) => x)), |
| 30 | 30 | 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')), | |
| 32 | 32 | one: json["one"], |
| 33 | 33 | optional: json["optional"], |
| 34 | 34 | unionWithEnum: json["unionWithEnum"], |
No generated files match these filters.