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

33 lines
840 B
Dart
Raw Normal View History

// 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,
'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 01:10:57 +00:00
abstract class LibrarySerializer {
Map<String, dynamic> toMap() {
return {
'id': id,
'collection': collection,
2018-02-28 01:10:57 +00:00
'created_at': createdAt.toIso8601String(),
'updated_at': updatedAt.toIso8601String()
};
}
}