2017-06-17 01:26:19 +00:00
|
|
|
library angel_serialize.test.models.book;
|
|
|
|
|
2018-06-23 04:52:46 +00:00
|
|
|
import 'package:angel_model/angel_model.dart';
|
2017-06-17 01:26:19 +00:00
|
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
2018-05-13 18:02:47 +00:00
|
|
|
import 'package:collection/collection.dart';
|
2017-06-17 01:26:19 +00:00
|
|
|
part 'book.g.dart';
|
2018-02-28 01:10:57 +00:00
|
|
|
part 'book.serializer.g.dart';
|
2017-06-17 01:26:19 +00:00
|
|
|
|
2018-03-29 19:58:36 +00:00
|
|
|
@Serializable(serializers: Serializers.all)
|
2017-06-17 01:26:19 +00:00
|
|
|
abstract class _Book extends Model {
|
|
|
|
String author, title, description;
|
|
|
|
int pageCount;
|
2018-03-05 06:18:46 +00:00
|
|
|
List<double> notModels;
|
2018-03-09 12:43:17 +00:00
|
|
|
|
|
|
|
@Alias('camelCase')
|
|
|
|
String camelCaseString;
|
2017-06-17 01:26:19 +00:00
|
|
|
}
|