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