platform/angel_serialize_generator/test/models/author.dart
2018-03-02 13:38:41 -05:00

26 lines
513 B
Dart

library angel_serialize.test.models.author;
import 'package:angel_framework/common.dart';
import 'package:angel_serialize/angel_serialize.dart';
import 'book.dart';
part 'author.g.dart';
part 'author.serializer.g.dart';
@serializable
abstract class _Author extends Model {
String name;
int age;
List<Book> books;
Book newestBook;
@exclude
String secret;
@Exclude(canDeserialize: true)
String obscured;
}
@serializable
abstract class _Library extends Model {
Map<String, Book> collection;
}