platform/angel_serialize_generator/test/models/book.serializer.g.dart

22 lines
651 B
Dart
Raw Normal View History

// GENERATED CODE - DO NOT MODIFY BY HAND
part of angel_serialize.test.models.book;
// **************************************************************************
// Generator: SerializerGenerator
// **************************************************************************
2018-02-28 01:10:57 +00:00
abstract class BookSerializer {
2018-02-28 01:41:19 +00:00
static Map<String, dynamic> toMap(Book model) {
2018-02-28 01:10:57 +00:00
return {
2018-02-28 01:41:19 +00:00
'id': model.id,
'author': model.author,
'title': model.title,
'description': model.description,
'page_count': model.pageCount,
'created_at': model.createdAt.toIso8601String(),
'updated_at': model.updatedAt.toIso8601String()
2018-02-28 01:10:57 +00:00
};
}
}