Models
This commit is contained in:
parent
6576e86b21
commit
2daa01bfdc
|
|
@ -75,6 +75,12 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
||||||
'enable_product_quantity',
|
'enable_product_quantity',
|
||||||
serializers.serialize(object.enableProductQuantity,
|
serializers.serialize(object.enableProductQuantity,
|
||||||
specifiedType: const FullType(bool)),
|
specifiedType: const FullType(bool)),
|
||||||
|
'enable_product_discount',
|
||||||
|
serializers.serialize(object.enableProductDiscount,
|
||||||
|
specifiedType: const FullType(bool)),
|
||||||
|
'default_task_is_date_based',
|
||||||
|
serializers.serialize(object.defaultTaskIsDateBased,
|
||||||
|
specifiedType: const FullType(bool)),
|
||||||
'default_quantity',
|
'default_quantity',
|
||||||
serializers.serialize(object.defaultQuantity,
|
serializers.serialize(object.defaultQuantity,
|
||||||
specifiedType: const FullType(bool)),
|
specifiedType: const FullType(bool)),
|
||||||
|
|
@ -352,6 +358,14 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
||||||
result.enableProductQuantity = serializers.deserialize(value,
|
result.enableProductQuantity = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
break;
|
break;
|
||||||
|
case 'enable_product_discount':
|
||||||
|
result.enableProductDiscount = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
break;
|
||||||
|
case 'default_task_is_date_based':
|
||||||
|
result.defaultTaskIsDateBased = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
break;
|
||||||
case 'default_quantity':
|
case 'default_quantity':
|
||||||
result.defaultQuantity = serializers.deserialize(value,
|
result.defaultQuantity = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
|
@ -2891,6 +2905,10 @@ class _$CompanyEntity extends CompanyEntity {
|
||||||
@override
|
@override
|
||||||
final bool enableProductQuantity;
|
final bool enableProductQuantity;
|
||||||
@override
|
@override
|
||||||
|
final bool enableProductDiscount;
|
||||||
|
@override
|
||||||
|
final bool defaultTaskIsDateBased;
|
||||||
|
@override
|
||||||
final bool defaultQuantity;
|
final bool defaultQuantity;
|
||||||
@override
|
@override
|
||||||
final bool showProductDetails;
|
final bool showProductDetails;
|
||||||
|
|
@ -3019,6 +3037,8 @@ class _$CompanyEntity extends CompanyEntity {
|
||||||
this.fillProducts,
|
this.fillProducts,
|
||||||
this.enableProductCost,
|
this.enableProductCost,
|
||||||
this.enableProductQuantity,
|
this.enableProductQuantity,
|
||||||
|
this.enableProductDiscount,
|
||||||
|
this.defaultTaskIsDateBased,
|
||||||
this.defaultQuantity,
|
this.defaultQuantity,
|
||||||
this.showProductDetails,
|
this.showProductDetails,
|
||||||
this.clientCanRegister,
|
this.clientCanRegister,
|
||||||
|
|
@ -3123,6 +3143,14 @@ class _$CompanyEntity extends CompanyEntity {
|
||||||
throw new BuiltValueNullFieldError(
|
throw new BuiltValueNullFieldError(
|
||||||
'CompanyEntity', 'enableProductQuantity');
|
'CompanyEntity', 'enableProductQuantity');
|
||||||
}
|
}
|
||||||
|
if (enableProductDiscount == null) {
|
||||||
|
throw new BuiltValueNullFieldError(
|
||||||
|
'CompanyEntity', 'enableProductDiscount');
|
||||||
|
}
|
||||||
|
if (defaultTaskIsDateBased == null) {
|
||||||
|
throw new BuiltValueNullFieldError(
|
||||||
|
'CompanyEntity', 'defaultTaskIsDateBased');
|
||||||
|
}
|
||||||
if (defaultQuantity == null) {
|
if (defaultQuantity == null) {
|
||||||
throw new BuiltValueNullFieldError('CompanyEntity', 'defaultQuantity');
|
throw new BuiltValueNullFieldError('CompanyEntity', 'defaultQuantity');
|
||||||
}
|
}
|
||||||
|
|
@ -3305,6 +3333,8 @@ class _$CompanyEntity extends CompanyEntity {
|
||||||
fillProducts == other.fillProducts &&
|
fillProducts == other.fillProducts &&
|
||||||
enableProductCost == other.enableProductCost &&
|
enableProductCost == other.enableProductCost &&
|
||||||
enableProductQuantity == other.enableProductQuantity &&
|
enableProductQuantity == other.enableProductQuantity &&
|
||||||
|
enableProductDiscount == other.enableProductDiscount &&
|
||||||
|
defaultTaskIsDateBased == other.defaultTaskIsDateBased &&
|
||||||
defaultQuantity == other.defaultQuantity &&
|
defaultQuantity == other.defaultQuantity &&
|
||||||
showProductDetails == other.showProductDetails &&
|
showProductDetails == other.showProductDetails &&
|
||||||
clientCanRegister == other.clientCanRegister &&
|
clientCanRegister == other.clientCanRegister &&
|
||||||
|
|
@ -3383,7 +3413,7 @@ class _$CompanyEntity extends CompanyEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, enableCustomSurchargeTaxes1.hashCode), enableCustomSurchargeTaxes2.hashCode), enableCustomSurchargeTaxes3.hashCode), enableCustomSurchargeTaxes4.hashCode), sizeId.hashCode), industryId.hashCode), subdomain.hashCode), portalMode.hashCode), portalDomain.hashCode), updateProducts.hashCode), convertProductExchangeRate.hashCode), fillProducts.hashCode), enableProductCost.hashCode), enableProductQuantity.hashCode), defaultQuantity.hashCode), showProductDetails.hashCode), clientCanRegister.hashCode), isLarge.hashCode), isDisabled.hashCode), enableShopApi.hashCode), companyKey.hashCode), firstDayOfWeek.hashCode), firstMonthOfYear.hashCode), numberOfInvoiceTaxRates.hashCode), numberOfItemTaxRates.hashCode), groups.hashCode), activities.hashCode), taxRates.hashCode), taskStatuses.hashCode), taskStatusMap.hashCode), companyGateways.hashCode), expenseCategories.hashCode), users.hashCode), clients.hashCode), products.hashCode), invoices.hashCode), recurringInvoices.hashCode), payments.hashCode), quotes.hashCode), credits.hashCode), tasks.hashCode), projects.hashCode), expenses.hashCode), vendors.hashCode), designs.hashCode), tokens.hashCode), webhooks.hashCode), paymentTerms.hashCode), customFields.hashCode), slackWebhookUrl.hashCode),
|
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, enableCustomSurchargeTaxes1.hashCode), enableCustomSurchargeTaxes2.hashCode), enableCustomSurchargeTaxes3.hashCode), enableCustomSurchargeTaxes4.hashCode), sizeId.hashCode), industryId.hashCode), subdomain.hashCode), portalMode.hashCode), portalDomain.hashCode), updateProducts.hashCode), convertProductExchangeRate.hashCode), fillProducts.hashCode), enableProductCost.hashCode), enableProductQuantity.hashCode), enableProductDiscount.hashCode), defaultTaskIsDateBased.hashCode), defaultQuantity.hashCode), showProductDetails.hashCode), clientCanRegister.hashCode), isLarge.hashCode), isDisabled.hashCode), enableShopApi.hashCode), companyKey.hashCode), firstDayOfWeek.hashCode), firstMonthOfYear.hashCode), numberOfInvoiceTaxRates.hashCode), numberOfItemTaxRates.hashCode), groups.hashCode), activities.hashCode), taxRates.hashCode), taskStatuses.hashCode), taskStatusMap.hashCode), companyGateways.hashCode), expenseCategories.hashCode), users.hashCode), clients.hashCode), products.hashCode), invoices.hashCode), recurringInvoices.hashCode), payments.hashCode), quotes.hashCode), credits.hashCode), tasks.hashCode), projects.hashCode), expenses.hashCode), vendors.hashCode), designs.hashCode), tokens.hashCode), webhooks.hashCode), paymentTerms.hashCode), customFields.hashCode), slackWebhookUrl.hashCode),
|
||||||
googleAnalyticsKey.hashCode),
|
googleAnalyticsKey.hashCode),
|
||||||
markExpensesInvoiceable.hashCode),
|
markExpensesInvoiceable.hashCode),
|
||||||
markExpensesPaid.hashCode),
|
markExpensesPaid.hashCode),
|
||||||
|
|
@ -3422,6 +3452,8 @@ class _$CompanyEntity extends CompanyEntity {
|
||||||
..add('fillProducts', fillProducts)
|
..add('fillProducts', fillProducts)
|
||||||
..add('enableProductCost', enableProductCost)
|
..add('enableProductCost', enableProductCost)
|
||||||
..add('enableProductQuantity', enableProductQuantity)
|
..add('enableProductQuantity', enableProductQuantity)
|
||||||
|
..add('enableProductDiscount', enableProductDiscount)
|
||||||
|
..add('defaultTaskIsDateBased', defaultTaskIsDateBased)
|
||||||
..add('defaultQuantity', defaultQuantity)
|
..add('defaultQuantity', defaultQuantity)
|
||||||
..add('showProductDetails', showProductDetails)
|
..add('showProductDetails', showProductDetails)
|
||||||
..add('clientCanRegister', clientCanRegister)
|
..add('clientCanRegister', clientCanRegister)
|
||||||
|
|
@ -3549,6 +3581,16 @@ class CompanyEntityBuilder
|
||||||
set enableProductQuantity(bool enableProductQuantity) =>
|
set enableProductQuantity(bool enableProductQuantity) =>
|
||||||
_$this._enableProductQuantity = enableProductQuantity;
|
_$this._enableProductQuantity = enableProductQuantity;
|
||||||
|
|
||||||
|
bool _enableProductDiscount;
|
||||||
|
bool get enableProductDiscount => _$this._enableProductDiscount;
|
||||||
|
set enableProductDiscount(bool enableProductDiscount) =>
|
||||||
|
_$this._enableProductDiscount = enableProductDiscount;
|
||||||
|
|
||||||
|
bool _defaultTaskIsDateBased;
|
||||||
|
bool get defaultTaskIsDateBased => _$this._defaultTaskIsDateBased;
|
||||||
|
set defaultTaskIsDateBased(bool defaultTaskIsDateBased) =>
|
||||||
|
_$this._defaultTaskIsDateBased = defaultTaskIsDateBased;
|
||||||
|
|
||||||
bool _defaultQuantity;
|
bool _defaultQuantity;
|
||||||
bool get defaultQuantity => _$this._defaultQuantity;
|
bool get defaultQuantity => _$this._defaultQuantity;
|
||||||
set defaultQuantity(bool defaultQuantity) =>
|
set defaultQuantity(bool defaultQuantity) =>
|
||||||
|
|
@ -3847,6 +3889,8 @@ class CompanyEntityBuilder
|
||||||
_fillProducts = _$v.fillProducts;
|
_fillProducts = _$v.fillProducts;
|
||||||
_enableProductCost = _$v.enableProductCost;
|
_enableProductCost = _$v.enableProductCost;
|
||||||
_enableProductQuantity = _$v.enableProductQuantity;
|
_enableProductQuantity = _$v.enableProductQuantity;
|
||||||
|
_enableProductDiscount = _$v.enableProductDiscount;
|
||||||
|
_defaultTaskIsDateBased = _$v.defaultTaskIsDateBased;
|
||||||
_defaultQuantity = _$v.defaultQuantity;
|
_defaultQuantity = _$v.defaultQuantity;
|
||||||
_showProductDetails = _$v.showProductDetails;
|
_showProductDetails = _$v.showProductDetails;
|
||||||
_clientCanRegister = _$v.clientCanRegister;
|
_clientCanRegister = _$v.clientCanRegister;
|
||||||
|
|
@ -3940,6 +3984,8 @@ class CompanyEntityBuilder
|
||||||
fillProducts: fillProducts,
|
fillProducts: fillProducts,
|
||||||
enableProductCost: enableProductCost,
|
enableProductCost: enableProductCost,
|
||||||
enableProductQuantity: enableProductQuantity,
|
enableProductQuantity: enableProductQuantity,
|
||||||
|
enableProductDiscount: enableProductDiscount,
|
||||||
|
defaultTaskIsDateBased: defaultTaskIsDateBased,
|
||||||
defaultQuantity: defaultQuantity,
|
defaultQuantity: defaultQuantity,
|
||||||
showProductDetails: showProductDetails,
|
showProductDetails: showProductDetails,
|
||||||
clientCanRegister: clientCanRegister,
|
clientCanRegister: clientCanRegister,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue