2017-06-17 01:26:19 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of angel_serialize.test.models.book;
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// Generator: JsonModelGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2018-02-27 19:57:05 +00:00
|
|
|
class Book extends _Book {
|
|
|
|
Book(
|
|
|
|
{this.id,
|
|
|
|
this.author,
|
|
|
|
this.title,
|
|
|
|
this.description,
|
|
|
|
this.pageCount,
|
|
|
|
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-06-17 01:26:19 +00:00
|
|
|
|
2018-02-28 00:36:53 +00:00
|
|
|
@override
|
2018-02-27 19:47:42 +00:00
|
|
|
final String author;
|
2017-06-17 01:26:19 +00:00
|
|
|
|
2018-02-28 00:36:53 +00:00
|
|
|
@override
|
2018-02-27 19:47:42 +00:00
|
|
|
final String title;
|
2017-06-17 01:26:19 +00:00
|
|
|
|
2018-02-28 00:36:53 +00:00
|
|
|
@override
|
2018-02-27 19:47:42 +00:00
|
|
|
final String description;
|
2017-06-17 01:26:19 +00:00
|
|
|
|
2018-02-28 00:36:53 +00:00
|
|
|
@override
|
2018-02-27 19:47:42 +00:00
|
|
|
final int pageCount;
|
2017-06-17 01:26:19 +00:00
|
|
|
|
2018-02-28 00:36:53 +00:00
|
|
|
@override
|
2018-02-27 19:47:42 +00:00
|
|
|
final DateTime createdAt;
|
2017-06-17 01:26:19 +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
|
|
|
|
|
|
|
Book copyWith(
|
|
|
|
{String id,
|
|
|
|
String author,
|
|
|
|
String title,
|
|
|
|
String description,
|
|
|
|
int pageCount,
|
|
|
|
DateTime createdAt,
|
|
|
|
DateTime updatedAt}) {
|
|
|
|
return new Book(
|
|
|
|
id: id ?? this.id,
|
|
|
|
author: author ?? this.author,
|
|
|
|
title: title ?? this.title,
|
|
|
|
description: description ?? this.description,
|
|
|
|
pageCount: pageCount ?? this.pageCount,
|
|
|
|
createdAt: createdAt ?? this.createdAt,
|
|
|
|
updatedAt: updatedAt ?? this.updatedAt);
|
|
|
|
}
|
2017-06-17 01:26:19 +00:00
|
|
|
}
|