Skip to content

Commit 1eee871

Browse files
committed
null fixes 4
1 parent a8d10ec commit 1eee871

21 files changed

+382
-364
lines changed

build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
targets:
2+
$default:
3+
builders:
4+
json_serializable:
5+
options:
6+
# Options configure how source code is generated for every
7+
# `@JsonSerializable`-annotated class in the package.
8+
field_rename: snake

lib/src/common/model/authorizations.g.dart

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/common/model/gists.g.dart

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/common/model/git.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/common/model/issues.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ class Issue {
3131
}
3232
}
3333

34-
/// Issue Labels
35-
@JsonKey(defaultValue: <IssueLabel>[])
36-
List<IssueLabel> labels = <IssueLabel>[];
37-
3834
@JsonKey(defaultValue: 0)
3935
int id;
4036

@@ -61,6 +57,10 @@ class Issue {
6157
/// User who created the issue.
6258
User? user;
6359

60+
/// Issue Labels
61+
@JsonKey(defaultValue: <IssueLabel>[])
62+
List<IssueLabel> labels = <IssueLabel>[];
63+
6464
/// The User that the issue is assigned to
6565
User? assignee;
6666

lib/src/common/model/issues.g.dart

Lines changed: 33 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/common/model/orgs.dart

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -180,34 +180,3 @@ class TeamMember {
180180
return _$TeamMemberFromJson(input);
181181
}
182182
}
183-
184-
/// Model class for a team repository.
185-
// @JsonSerializable(createToJson: false)
186-
// class TeamRepository extends Repository {
187-
// TeamRepository({this.permissions});
188-
189-
// /// Repository Permissions.
190-
// TeamRepositoryPermissions? permissions;
191-
192-
// factory TeamRepository.fromJson(Map<String, dynamic> input) {
193-
// return _$TeamRepositoryFromJson(input);
194-
// }
195-
// }
196-
197-
/// Model class for team repository permissions.
198-
@JsonSerializable(createToJson: false)
199-
class TeamRepositoryPermissions {
200-
TeamRepositoryPermissions(this.admin, this.push, this.pull);
201-
202-
/// Administrative Access
203-
final bool? admin;
204-
205-
/// Push Access
206-
final bool? push;
207-
208-
/// Pull Access
209-
final bool? pull;
210-
211-
factory TeamRepositoryPermissions.fromJson(Map<String, dynamic> json) =>
212-
_$TeamRepositoryPermissionsFromJson(json);
213-
}

lib/src/common/model/orgs.g.dart

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)