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';
|
|
|
|
|
2019-01-07 00:56:05 +00:00
|
|
|
@Serializable(
|
|
|
|
serializers: Serializers.all,
|
|
|
|
includeAnnotations: [
|
|
|
|
pragma('hello'),
|
|
|
|
SerializableField(alias: 'omg'),
|
|
|
|
],
|
|
|
|
)
|
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
|
|
|
|
2019-01-07 00:56:05 +00:00
|
|
|
@SerializableField(alias: 'camelCase')
|
2018-03-09 12:43:17 +00:00
|
|
|
String camelCaseString;
|
2018-07-11 15:49:46 +00:00
|
|
|
}
|