platform/angel_serialize_generator/test/models/author.dart
2018-02-27 19:36:53 -05:00

22 lines
427 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;
}