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

68 lines
1.4 KiB
Dart
Raw Normal View History

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,
2018-03-05 06:18:46 +00:00
this.notModels,
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-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-03-05 06:18:46 +00:00
@override
final List<double> notModels;
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,
2018-03-05 06:18:46 +00:00
List<double> notModels,
2018-02-28 00:36:53 +00:00
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,
2018-03-05 06:18:46 +00:00
notModels: notModels ?? this.notModels,
2018-02-28 00:36:53 +00:00
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt);
}
2018-02-28 01:49:14 +00:00
Map<String, dynamic> toJson() {
return BookSerializer.toMap(this);
}
2017-06-17 01:26:19 +00:00
}