Use latest json_serializable and json_annotation
Separates dev and runtime dependencies
MODIFY
lib/src/common.dart
lib/src/common.dart
@@ -9,7 +9,7 @@ import "package:html/dom.dart" as html;
import "package:html/parser.dart" as html_parser;
import "package:http/http.dart" as http;
import "package:quiver/async.dart" show FutureGroup;
-import "package:json_serializable/annotations.dart";
+import "package:json_annotation/json_annotation.dart";
import "package:xml/xml.dart" as xml;
import 'util.dart';

MODIFY
pubspec.yaml
pubspec.yaml
@@ -8,13 +8,14 @@ environment:
dependencies:
html: '>=0.12.0 <0.14.0'
http: '^0.11.3'
- json_serializable: '^0.2.1'
+ json_annotation: '^0.2.0'
markdown: '^0.11.1'
quiver: '>=0.20.0 <0.26.0'
xml: '^2.0.0'
dev_dependencies:
browser: '^0.10.0+2'
build_runner: ^0.5.0
+ json_serializable: '^0.2.4'
source_gen: '^0.7.0'
test: '^0.12.0'
mockito: '^1.0.1'

Use latest json_serializable and json_annotation

Separates dev and runtime dependencies