21 lines
425 B
Dart
21 lines
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;
|
||
|
}
|