Update README.md
This commit is contained in:
parent
64c5168c6f
commit
4511a14ea4
1 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@ the time you spend writing boilerplate serialization code for your models.
|
||||||
In your `pubspec.yaml`, you need to install the following dependencies:
|
In your `pubspec.yaml`, you need to install the following dependencies:
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
|
angel_model: ^1.0.0 # Only required if using Angel!!!
|
||||||
angel_serialize: ^2.0.0
|
angel_serialize: ^2.0.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel_serialize_generator: ^2.0.0
|
angel_serialize_generator: ^2.0.0
|
||||||
|
@ -52,7 +53,7 @@ For example, say we have a `Book` model. Create a class named `_Book`:
|
||||||
```dart
|
```dart
|
||||||
library angel_serialize.test.models.book;
|
library angel_serialize.test.models.book;
|
||||||
|
|
||||||
import 'package:angel_framework/common.dart';
|
import 'package:angel_model/angel_model.dart';
|
||||||
import 'package:angel_serialize/angel_serialize.dart';
|
import 'package:angel_serialize/angel_serialize.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
part 'book.g.dart';
|
part 'book.g.dart';
|
||||||
|
|
Loading…
Reference in a new issue