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

92 lines
1.9 KiB
Dart
Raw Normal View History

2017-12-07 07:08:32 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of angel_serialize.test.models.author;
// **************************************************************************
// Generator: JsonModelGenerator
// **************************************************************************
2018-02-27 19:57:05 +00:00
class Author extends _Author {
Author(
{this.id,
this.name,
this.age,
this.books,
this.newestBook,
2018-02-28 00:36:53 +00:00
this.secret,
2018-02-27 19:57:05 +00:00
this.createdAt,
this.updatedAt});
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final String id;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final String name;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final int age;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:50:46 +00:00
final List<Book> books;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final Book newestBook;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
final String secret;
@override
2018-02-27 19:47:42 +00:00
final DateTime createdAt;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final DateTime updatedAt;
2018-02-28 00:36:53 +00:00
Author copyWith(
{String id,
String name,
int age,
List<Book> books,
Book newestBook,
String secret,
DateTime createdAt,
DateTime updatedAt}) {
return new Author(
id: id ?? this.id,
name: name ?? this.name,
age: age ?? this.age,
books: books ?? this.books,
newestBook: newestBook ?? this.newestBook,
secret: secret ?? this.secret,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt);
}
2017-12-07 07:08:32 +00:00
}
2018-02-27 19:57:05 +00:00
class Library extends _Library {
Library({this.id, this.collection, this.createdAt, this.updatedAt});
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final String id;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:50:46 +00:00
final Map<String, Book> collection;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final DateTime createdAt;
2017-12-07 07:08:32 +00:00
2018-02-28 00:36:53 +00:00
@override
2018-02-27 19:47:42 +00:00
final DateTime updatedAt;
2018-02-28 00:36:53 +00:00
Library copyWith(
{String id,
Map<String, Book> collection,
DateTime createdAt,
DateTime updatedAt}) {
return new Library(
id: id ?? this.id,
collection: collection ?? this.collection,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt);
}
2017-12-07 07:08:32 +00:00
}