2018-02-28 00:59:43 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of angel_serialize.test.models.author;
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// Generator: SerializerGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2018-02-28 01:10:57 +00:00
|
|
|
abstract class AuthorSerializer {
|
|
|
|
Map<String, dynamic> toMap() {
|
|
|
|
return {
|
|
|
|
'id': id,
|
2018-02-28 01:12:56 +00:00
|
|
|
'name': name,
|
|
|
|
'age': age,
|
|
|
|
'books': books,
|
2018-02-28 01:20:42 +00:00
|
|
|
'newest_book': BookSerializer.toMap(newestBook),
|
2018-02-28 01:10:57 +00:00
|
|
|
'created_at': createdAt.toIso8601String(),
|
|
|
|
'updated_at': updatedAt.toIso8601String()
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2018-02-28 00:59:43 +00:00
|
|
|
|
2018-02-28 01:10:57 +00:00
|
|
|
abstract class LibrarySerializer {
|
|
|
|
Map<String, dynamic> toMap() {
|
|
|
|
return {
|
|
|
|
'id': id,
|
2018-02-28 01:12:56 +00:00
|
|
|
'collection': collection,
|
2018-02-28 01:10:57 +00:00
|
|
|
'created_at': createdAt.toIso8601String(),
|
|
|
|
'updated_at': updatedAt.toIso8601String()
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|