Updated README... somewhat
This commit is contained in:
parent
5f4411b6e9
commit
73ec77091c
1 changed files with 5 additions and 1 deletions
|
@ -32,6 +32,9 @@ import 'package:angel_serialize_generator/angel_serialize_generator.dart';
|
|||
|
||||
final List<BuildAction> actions = [
|
||||
new BuildAction(new PartBuilder([const JsonModelGenerator()]),
|
||||
'<package-name>',
|
||||
inputs: const ['test/models/*.dart']),
|
||||
new BuildAction(new PartBuilder([const SerializerGenerator()], generatedExtension: '.serializer.g.dart'),
|
||||
'<package-name>',
|
||||
inputs: const ['test/models/*.dart'])
|
||||
];
|
||||
|
@ -195,7 +198,8 @@ abstract class _Whisper extends Model {
|
|||
* As the second type argument to a `Map`
|
||||
|
||||
In other words, the following are all legal, and will be serialized/deserialized.
|
||||
Be sure to use the underscored name of a child class (ex. `_Book`):
|
||||
You can use either the underscored name of a child class (ex. `_Book`), or the
|
||||
generated class name (ex `Book`):
|
||||
|
||||
```dart
|
||||
@serializable
|
||||
|
|
Loading…
Reference in a new issue