Update to latest json_ packages
MODIFY
lib/src/common.g.dart
lib/src/common.g.dart
@@ -34,7 +34,7 @@ GitCommit _$GitCommitFromJson(Map<String, dynamic> json) {
}
Map<String, dynamic> _$CreateGitCommitToJson(CreateGitCommit instance) {
- var val = <String, dynamic>{};
+ final val = <String, dynamic>{};
void writeNotNull(String key, dynamic value) {
if (value != null) {
@@ -56,7 +56,7 @@ GitCommitUser _$GitCommitUserFromJson(Map<String, dynamic> json) {
}
Map<String, dynamic> _$GitCommitUserToJson(GitCommitUser instance) {
- var val = <String, dynamic>{};
+ final val = <String, dynamic>{};
void writeNotNull(String key, dynamic value) {
if (value != null) {

MODIFY
pubspec.yaml
pubspec.yaml
@@ -4,13 +4,13 @@ author: Kenneth Endfinger <kaendfinger@gmail.com>
description: GitHub API Client Library
homepage: https://github.com/DirectMyFile/github.dart
environment:
- sdk: '>=2.0.0-dev.36 <3.0.0'
+ sdk: '>=2.0.0 <3.0.0'
dependencies:
http: '>=0.11.3 <0.13.0'
http_parser: ^3.1.1
- json_annotation: ^1.1.0
+ json_annotation: ^2.0.0
dev_dependencies:
build_runner: ^1.0.0
- json_serializable: ^1.1.0
+ json_serializable: ^2.0.0
test: ^1.3.0
mockito: ^3.0.0

Update to latest json_ packages (#117)