platform/angel_serialize_generator/test/models/author.dart
2017-12-07 02:08:32 -05:00

21 lines
No EOL
425 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';
@serializable
abstract class _Author extends Model {
String name;
int age;
List<Book> books;
Book newestBook;
@exclude
String secret;
}
@serializable
abstract class _Library extends Model {
Map<String, Book> collection;
}