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

33 lines
818 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,
'newest_book': 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()
};
}
}