Update models
This commit is contained in:
parent
a289da6550
commit
21b409f6df
|
|
@ -181,6 +181,8 @@ class _$DesignEntitySerializer implements StructuredSerializer<DesignEntity> {
|
|||
'is_custom',
|
||||
serializers.serialize(object.isCustom,
|
||||
specifiedType: const FullType(bool)),
|
||||
'is_free',
|
||||
serializers.serialize(object.isFree, specifiedType: const FullType(bool)),
|
||||
'created_at',
|
||||
serializers.serialize(object.createdAt,
|
||||
specifiedType: const FullType(int)),
|
||||
|
|
@ -244,6 +246,10 @@ class _$DesignEntitySerializer implements StructuredSerializer<DesignEntity> {
|
|||
result.isCustom = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
break;
|
||||
case 'is_free':
|
||||
result.isFree = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
break;
|
||||
case 'isChanged':
|
||||
result.isChanged = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
|
|
@ -609,6 +615,8 @@ class _$DesignEntity extends DesignEntity {
|
|||
@override
|
||||
final bool isCustom;
|
||||
@override
|
||||
final bool isFree;
|
||||
@override
|
||||
final bool isChanged;
|
||||
@override
|
||||
final int createdAt;
|
||||
|
|
@ -632,6 +640,7 @@ class _$DesignEntity extends DesignEntity {
|
|||
{this.name,
|
||||
this.design,
|
||||
this.isCustom,
|
||||
this.isFree,
|
||||
this.isChanged,
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
|
|
@ -650,6 +659,9 @@ class _$DesignEntity extends DesignEntity {
|
|||
if (isCustom == null) {
|
||||
throw new BuiltValueNullFieldError('DesignEntity', 'isCustom');
|
||||
}
|
||||
if (isFree == null) {
|
||||
throw new BuiltValueNullFieldError('DesignEntity', 'isFree');
|
||||
}
|
||||
if (createdAt == null) {
|
||||
throw new BuiltValueNullFieldError('DesignEntity', 'createdAt');
|
||||
}
|
||||
|
|
@ -678,6 +690,7 @@ class _$DesignEntity extends DesignEntity {
|
|||
name == other.name &&
|
||||
design == other.design &&
|
||||
isCustom == other.isCustom &&
|
||||
isFree == other.isFree &&
|
||||
isChanged == other.isChanged &&
|
||||
createdAt == other.createdAt &&
|
||||
updatedAt == other.updatedAt &&
|
||||
|
|
@ -700,9 +713,11 @@ class _$DesignEntity extends DesignEntity {
|
|||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc($jc(0, name.hashCode),
|
||||
design.hashCode),
|
||||
isCustom.hashCode),
|
||||
$jc(
|
||||
$jc($jc(0, name.hashCode),
|
||||
design.hashCode),
|
||||
isCustom.hashCode),
|
||||
isFree.hashCode),
|
||||
isChanged.hashCode),
|
||||
createdAt.hashCode),
|
||||
updatedAt.hashCode),
|
||||
|
|
@ -719,6 +734,7 @@ class _$DesignEntity extends DesignEntity {
|
|||
..add('name', name)
|
||||
..add('design', design)
|
||||
..add('isCustom', isCustom)
|
||||
..add('isFree', isFree)
|
||||
..add('isChanged', isChanged)
|
||||
..add('createdAt', createdAt)
|
||||
..add('updatedAt', updatedAt)
|
||||
|
|
@ -748,6 +764,10 @@ class DesignEntityBuilder
|
|||
bool get isCustom => _$this._isCustom;
|
||||
set isCustom(bool isCustom) => _$this._isCustom = isCustom;
|
||||
|
||||
bool _isFree;
|
||||
bool get isFree => _$this._isFree;
|
||||
set isFree(bool isFree) => _$this._isFree = isFree;
|
||||
|
||||
bool _isChanged;
|
||||
bool get isChanged => _$this._isChanged;
|
||||
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
||||
|
|
@ -782,13 +802,16 @@ class DesignEntityBuilder
|
|||
String get id => _$this._id;
|
||||
set id(String id) => _$this._id = id;
|
||||
|
||||
DesignEntityBuilder();
|
||||
DesignEntityBuilder() {
|
||||
DesignEntity._initializeBuilder(this);
|
||||
}
|
||||
|
||||
DesignEntityBuilder get _$this {
|
||||
if (_$v != null) {
|
||||
_name = _$v.name;
|
||||
_design = _$v.design?.toBuilder();
|
||||
_isCustom = _$v.isCustom;
|
||||
_isFree = _$v.isFree;
|
||||
_isChanged = _$v.isChanged;
|
||||
_createdAt = _$v.createdAt;
|
||||
_updatedAt = _$v.updatedAt;
|
||||
|
|
@ -824,6 +847,7 @@ class DesignEntityBuilder
|
|||
name: name,
|
||||
design: design.build(),
|
||||
isCustom: isCustom,
|
||||
isFree: isFree,
|
||||
isChanged: isChanged,
|
||||
createdAt: createdAt,
|
||||
updatedAt: updatedAt,
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ class _$HealthCheckResponseSerializer
|
|||
'pdf_engine',
|
||||
serializers.serialize(object.pdfEngine,
|
||||
specifiedType: const FullType(String)),
|
||||
'queue',
|
||||
serializers.serialize(object.queue,
|
||||
specifiedType: const FullType(String)),
|
||||
];
|
||||
|
||||
return result;
|
||||
|
|
@ -121,6 +124,10 @@ class _$HealthCheckResponseSerializer
|
|||
result.pdfEngine = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String;
|
||||
break;
|
||||
case 'queue':
|
||||
result.queue = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -217,6 +224,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
|||
final int pendingJobs;
|
||||
@override
|
||||
final String pdfEngine;
|
||||
@override
|
||||
final String queue;
|
||||
|
||||
factory _$HealthCheckResponse(
|
||||
[void Function(HealthCheckResponseBuilder) updates]) =>
|
||||
|
|
@ -233,7 +242,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
|||
this.execEnabled,
|
||||
this.emailDriver,
|
||||
this.pendingJobs,
|
||||
this.pdfEngine})
|
||||
this.pdfEngine,
|
||||
this.queue})
|
||||
: super._() {
|
||||
if (systemHealth == null) {
|
||||
throw new BuiltValueNullFieldError('HealthCheckResponse', 'systemHealth');
|
||||
|
|
@ -269,6 +279,9 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
|||
if (pdfEngine == null) {
|
||||
throw new BuiltValueNullFieldError('HealthCheckResponse', 'pdfEngine');
|
||||
}
|
||||
if (queue == null) {
|
||||
throw new BuiltValueNullFieldError('HealthCheckResponse', 'queue');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -294,7 +307,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
|||
execEnabled == other.execEnabled &&
|
||||
emailDriver == other.emailDriver &&
|
||||
pendingJobs == other.pendingJobs &&
|
||||
pdfEngine == other.pdfEngine;
|
||||
pdfEngine == other.pdfEngine &&
|
||||
queue == other.queue;
|
||||
}
|
||||
|
||||
int __hashCode;
|
||||
|
|
@ -309,17 +323,19 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
|||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc($jc(0, systemHealth.hashCode),
|
||||
phpVersion.hashCode),
|
||||
envWritable.hashCode),
|
||||
dbCheck.hashCode),
|
||||
cacheEnabled.hashCode),
|
||||
phantomEnabled.hashCode),
|
||||
openBasedir.hashCode),
|
||||
execEnabled.hashCode),
|
||||
emailDriver.hashCode),
|
||||
pendingJobs.hashCode),
|
||||
pdfEngine.hashCode));
|
||||
$jc(
|
||||
$jc($jc(0, systemHealth.hashCode),
|
||||
phpVersion.hashCode),
|
||||
envWritable.hashCode),
|
||||
dbCheck.hashCode),
|
||||
cacheEnabled.hashCode),
|
||||
phantomEnabled.hashCode),
|
||||
openBasedir.hashCode),
|
||||
execEnabled.hashCode),
|
||||
emailDriver.hashCode),
|
||||
pendingJobs.hashCode),
|
||||
pdfEngine.hashCode),
|
||||
queue.hashCode));
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -335,7 +351,8 @@ class _$HealthCheckResponse extends HealthCheckResponse {
|
|||
..add('execEnabled', execEnabled)
|
||||
..add('emailDriver', emailDriver)
|
||||
..add('pendingJobs', pendingJobs)
|
||||
..add('pdfEngine', pdfEngine))
|
||||
..add('pdfEngine', pdfEngine)
|
||||
..add('queue', queue))
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -391,6 +408,10 @@ class HealthCheckResponseBuilder
|
|||
String get pdfEngine => _$this._pdfEngine;
|
||||
set pdfEngine(String pdfEngine) => _$this._pdfEngine = pdfEngine;
|
||||
|
||||
String _queue;
|
||||
String get queue => _$this._queue;
|
||||
set queue(String queue) => _$this._queue = queue;
|
||||
|
||||
HealthCheckResponseBuilder();
|
||||
|
||||
HealthCheckResponseBuilder get _$this {
|
||||
|
|
@ -406,6 +427,7 @@ class HealthCheckResponseBuilder
|
|||
_emailDriver = _$v.emailDriver;
|
||||
_pendingJobs = _$v.pendingJobs;
|
||||
_pdfEngine = _$v.pdfEngine;
|
||||
_queue = _$v.queue;
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -440,7 +462,8 @@ class HealthCheckResponseBuilder
|
|||
execEnabled: execEnabled,
|
||||
emailDriver: emailDriver,
|
||||
pendingJobs: pendingJobs,
|
||||
pdfEngine: pdfEngine);
|
||||
pdfEngine: pdfEngine,
|
||||
queue: queue);
|
||||
} catch (_) {
|
||||
String _$failedField;
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -731,6 +731,9 @@ class _$InvoiceItemEntitySerializer
|
|||
specifiedType: const FullType(String)),
|
||||
'cost',
|
||||
serializers.serialize(object.cost, specifiedType: const FullType(double)),
|
||||
'product_cost',
|
||||
serializers.serialize(object.productCost,
|
||||
specifiedType: const FullType(String)),
|
||||
'quantity',
|
||||
serializers.serialize(object.quantity,
|
||||
specifiedType: const FullType(double)),
|
||||
|
|
@ -819,6 +822,10 @@ class _$InvoiceItemEntitySerializer
|
|||
result.cost = serializers.deserialize(value,
|
||||
specifiedType: const FullType(double)) as double;
|
||||
break;
|
||||
case 'product_cost':
|
||||
result.productCost = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String;
|
||||
break;
|
||||
case 'quantity':
|
||||
result.quantity = serializers.deserialize(value,
|
||||
specifiedType: const FullType(double)) as double;
|
||||
|
|
@ -2466,6 +2473,8 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
|||
@override
|
||||
final double cost;
|
||||
@override
|
||||
final String productCost;
|
||||
@override
|
||||
final double quantity;
|
||||
@override
|
||||
final String taxName1;
|
||||
|
|
@ -2506,6 +2515,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
|||
{this.productKey,
|
||||
this.notes,
|
||||
this.cost,
|
||||
this.productCost,
|
||||
this.quantity,
|
||||
this.taxName1,
|
||||
this.taxRate1,
|
||||
|
|
@ -2532,6 +2542,9 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
|||
if (cost == null) {
|
||||
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'cost');
|
||||
}
|
||||
if (productCost == null) {
|
||||
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'productCost');
|
||||
}
|
||||
if (quantity == null) {
|
||||
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'quantity');
|
||||
}
|
||||
|
|
@ -2585,6 +2598,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
|||
productKey == other.productKey &&
|
||||
notes == other.notes &&
|
||||
cost == other.cost &&
|
||||
productCost == other.productCost &&
|
||||
quantity == other.quantity &&
|
||||
taxName1 == other.taxName1 &&
|
||||
taxRate1 == other.taxRate1 &&
|
||||
|
|
@ -2624,18 +2638,12 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
|||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
0,
|
||||
productKey
|
||||
.hashCode),
|
||||
notes
|
||||
.hashCode),
|
||||
cost
|
||||
.hashCode),
|
||||
quantity
|
||||
.hashCode),
|
||||
taxName1
|
||||
.hashCode),
|
||||
$jc($jc(0, productKey.hashCode),
|
||||
notes.hashCode),
|
||||
cost.hashCode),
|
||||
productCost.hashCode),
|
||||
quantity.hashCode),
|
||||
taxName1.hashCode),
|
||||
taxRate1.hashCode),
|
||||
taxName2.hashCode),
|
||||
taxRate2.hashCode),
|
||||
|
|
@ -2658,6 +2666,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
|||
..add('productKey', productKey)
|
||||
..add('notes', notes)
|
||||
..add('cost', cost)
|
||||
..add('productCost', productCost)
|
||||
..add('quantity', quantity)
|
||||
..add('taxName1', taxName1)
|
||||
..add('taxRate1', taxRate1)
|
||||
|
|
@ -2694,6 +2703,10 @@ class InvoiceItemEntityBuilder
|
|||
double get cost => _$this._cost;
|
||||
set cost(double cost) => _$this._cost = cost;
|
||||
|
||||
String _productCost;
|
||||
String get productCost => _$this._productCost;
|
||||
set productCost(String productCost) => _$this._productCost = productCost;
|
||||
|
||||
double _quantity;
|
||||
double get quantity => _$this._quantity;
|
||||
set quantity(double quantity) => _$this._quantity = quantity;
|
||||
|
|
@ -2758,13 +2771,16 @@ class InvoiceItemEntityBuilder
|
|||
int get createdAt => _$this._createdAt;
|
||||
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
||||
|
||||
InvoiceItemEntityBuilder();
|
||||
InvoiceItemEntityBuilder() {
|
||||
InvoiceItemEntity._initializeBuilder(this);
|
||||
}
|
||||
|
||||
InvoiceItemEntityBuilder get _$this {
|
||||
if (_$v != null) {
|
||||
_productKey = _$v.productKey;
|
||||
_notes = _$v.notes;
|
||||
_cost = _$v.cost;
|
||||
_productCost = _$v.productCost;
|
||||
_quantity = _$v.quantity;
|
||||
_taxName1 = _$v.taxName1;
|
||||
_taxRate1 = _$v.taxRate1;
|
||||
|
|
@ -2806,6 +2822,7 @@ class InvoiceItemEntityBuilder
|
|||
productKey: productKey,
|
||||
notes: notes,
|
||||
cost: cost,
|
||||
productCost: productCost,
|
||||
quantity: quantity,
|
||||
taxName1: taxName1,
|
||||
taxRate1: taxRate1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue