Update models
This commit is contained in:
parent
a1d213057c
commit
c6dcff7de1
|
|
@ -85,7 +85,7 @@ class _$PreImportResponseSerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'hash':
|
||||
result.hash = serializers.deserialize(value,
|
||||
|
|
@ -144,7 +144,7 @@ class _$PreImportResponseEntityDetailsSerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'available':
|
||||
result.available.replace(serializers.deserialize(value,
|
||||
|
|
@ -191,12 +191,10 @@ class _$ImportRequestSerializer implements StructuredSerializer<ImportRequest> {
|
|||
BuiltMap, const [const FullType(int), const FullType(String)])
|
||||
])),
|
||||
];
|
||||
Object value;
|
||||
value = object.dummy;
|
||||
if (value != null) {
|
||||
if (object.dummy != null) {
|
||||
result
|
||||
..add('dummy_field')
|
||||
..add(serializers.serialize(value,
|
||||
..add(serializers.serialize(object.dummy,
|
||||
specifiedType: const FullType(BuiltMap,
|
||||
const [const FullType(int), const FullType(String)])));
|
||||
}
|
||||
|
|
@ -213,7 +211,7 @@ class _$ImportRequestSerializer implements StructuredSerializer<ImportRequest> {
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'hash':
|
||||
result.hash = serializers.deserialize(value,
|
||||
|
|
@ -275,9 +273,12 @@ class _$PreImportResponse extends PreImportResponse {
|
|||
(new PreImportResponseBuilder()..update(updates)).build();
|
||||
|
||||
_$PreImportResponse._({this.hash, this.mappings}) : super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(hash, 'PreImportResponse', 'hash');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
mappings, 'PreImportResponse', 'mappings');
|
||||
if (hash == null) {
|
||||
throw new BuiltValueNullFieldError('PreImportResponse', 'hash');
|
||||
}
|
||||
if (mappings == null) {
|
||||
throw new BuiltValueNullFieldError('PreImportResponse', 'mappings');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -329,10 +330,9 @@ class PreImportResponseBuilder
|
|||
PreImportResponseBuilder();
|
||||
|
||||
PreImportResponseBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_hash = $v.hash;
|
||||
_mappings = $v.mappings.toBuilder();
|
||||
if (_$v != null) {
|
||||
_hash = _$v.hash;
|
||||
_mappings = _$v.mappings?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -340,7 +340,9 @@ class PreImportResponseBuilder
|
|||
|
||||
@override
|
||||
void replace(PreImportResponse other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PreImportResponse;
|
||||
}
|
||||
|
||||
|
|
@ -354,10 +356,7 @@ class PreImportResponseBuilder
|
|||
_$PreImportResponse _$result;
|
||||
try {
|
||||
_$result = _$v ??
|
||||
new _$PreImportResponse._(
|
||||
hash: BuiltValueNullFieldError.checkNotNull(
|
||||
hash, 'PreImportResponse', 'hash'),
|
||||
mappings: mappings.build());
|
||||
new _$PreImportResponse._(hash: hash, mappings: mappings.build());
|
||||
} catch (_) {
|
||||
String _$failedField;
|
||||
try {
|
||||
|
|
@ -386,10 +385,14 @@ class _$PreImportResponseEntityDetails extends PreImportResponseEntityDetails {
|
|||
|
||||
_$PreImportResponseEntityDetails._({this.available, this.headers})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
available, 'PreImportResponseEntityDetails', 'available');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
headers, 'PreImportResponseEntityDetails', 'headers');
|
||||
if (available == null) {
|
||||
throw new BuiltValueNullFieldError(
|
||||
'PreImportResponseEntityDetails', 'available');
|
||||
}
|
||||
if (headers == null) {
|
||||
throw new BuiltValueNullFieldError(
|
||||
'PreImportResponseEntityDetails', 'headers');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -445,10 +448,9 @@ class PreImportResponseEntityDetailsBuilder
|
|||
PreImportResponseEntityDetailsBuilder();
|
||||
|
||||
PreImportResponseEntityDetailsBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_available = $v.available.toBuilder();
|
||||
_headers = $v.headers.toBuilder();
|
||||
if (_$v != null) {
|
||||
_available = _$v.available?.toBuilder();
|
||||
_headers = _$v.headers?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -456,7 +458,9 @@ class PreImportResponseEntityDetailsBuilder
|
|||
|
||||
@override
|
||||
void replace(PreImportResponseEntityDetails other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PreImportResponseEntityDetails;
|
||||
}
|
||||
|
||||
|
|
@ -508,13 +512,18 @@ class _$ImportRequest extends ImportRequest {
|
|||
_$ImportRequest._(
|
||||
{this.hash, this.importType, this.skipHeader, this.columnMap, this.dummy})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(hash, 'ImportRequest', 'hash');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
importType, 'ImportRequest', 'importType');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
skipHeader, 'ImportRequest', 'skipHeader');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
columnMap, 'ImportRequest', 'columnMap');
|
||||
if (hash == null) {
|
||||
throw new BuiltValueNullFieldError('ImportRequest', 'hash');
|
||||
}
|
||||
if (importType == null) {
|
||||
throw new BuiltValueNullFieldError('ImportRequest', 'importType');
|
||||
}
|
||||
if (skipHeader == null) {
|
||||
throw new BuiltValueNullFieldError('ImportRequest', 'skipHeader');
|
||||
}
|
||||
if (columnMap == null) {
|
||||
throw new BuiltValueNullFieldError('ImportRequest', 'columnMap');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -588,13 +597,12 @@ class ImportRequestBuilder
|
|||
ImportRequestBuilder();
|
||||
|
||||
ImportRequestBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_hash = $v.hash;
|
||||
_importType = $v.importType;
|
||||
_skipHeader = $v.skipHeader;
|
||||
_columnMap = $v.columnMap.toBuilder();
|
||||
_dummy = $v.dummy?.toBuilder();
|
||||
if (_$v != null) {
|
||||
_hash = _$v.hash;
|
||||
_importType = _$v.importType;
|
||||
_skipHeader = _$v.skipHeader;
|
||||
_columnMap = _$v.columnMap?.toBuilder();
|
||||
_dummy = _$v.dummy?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -602,7 +610,9 @@ class ImportRequestBuilder
|
|||
|
||||
@override
|
||||
void replace(ImportRequest other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$ImportRequest;
|
||||
}
|
||||
|
||||
|
|
@ -617,12 +627,9 @@ class ImportRequestBuilder
|
|||
try {
|
||||
_$result = _$v ??
|
||||
new _$ImportRequest._(
|
||||
hash: BuiltValueNullFieldError.checkNotNull(
|
||||
hash, 'ImportRequest', 'hash'),
|
||||
importType: BuiltValueNullFieldError.checkNotNull(
|
||||
importType, 'ImportRequest', 'importType'),
|
||||
skipHeader: BuiltValueNullFieldError.checkNotNull(
|
||||
skipHeader, 'ImportRequest', 'skipHeader'),
|
||||
hash: hash,
|
||||
importType: importType,
|
||||
skipHeader: skipHeader,
|
||||
columnMap: columnMap.build(),
|
||||
dummy: _dummy?.build());
|
||||
} catch (_) {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class _$PaymentListResponseSerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'data':
|
||||
result.data.replace(serializers.deserialize(value,
|
||||
|
|
@ -97,7 +97,7 @@ class _$PaymentItemResponseSerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'data':
|
||||
result.data.replace(serializers.deserialize(value,
|
||||
|
|
@ -212,61 +212,52 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
|
|||
'id',
|
||||
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
||||
];
|
||||
Object value;
|
||||
value = object.isForInvoice;
|
||||
if (value != null) {
|
||||
if (object.isForInvoice != null) {
|
||||
result
|
||||
..add('isForInvoice')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.isForInvoice,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.isApplying;
|
||||
if (value != null) {
|
||||
if (object.isApplying != null) {
|
||||
result
|
||||
..add('isApplying')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.isApplying,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.sendEmail;
|
||||
if (value != null) {
|
||||
if (object.sendEmail != null) {
|
||||
result
|
||||
..add('sendEmail')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.sendEmail,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.gatewayRefund;
|
||||
if (value != null) {
|
||||
if (object.gatewayRefund != null) {
|
||||
result
|
||||
..add('gatewayRefund')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.gatewayRefund,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.isChanged;
|
||||
if (value != null) {
|
||||
if (object.isChanged != null) {
|
||||
result
|
||||
..add('isChanged')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.isChanged,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.isDeleted;
|
||||
if (value != null) {
|
||||
if (object.isDeleted != null) {
|
||||
result
|
||||
..add('is_deleted')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.isDeleted,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.createdUserId;
|
||||
if (value != null) {
|
||||
if (object.createdUserId != null) {
|
||||
result
|
||||
..add('user_id')
|
||||
..add(serializers.serialize(value,
|
||||
..add(serializers.serialize(object.createdUserId,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
value = object.assignedUserId;
|
||||
if (value != null) {
|
||||
if (object.assignedUserId != null) {
|
||||
result
|
||||
..add('assigned_user_id')
|
||||
..add(serializers.serialize(value,
|
||||
..add(serializers.serialize(object.assignedUserId,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
return result;
|
||||
|
|
@ -282,7 +273,7 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'amount':
|
||||
result.amount = serializers.deserialize(value,
|
||||
|
|
@ -466,31 +457,28 @@ class _$PaymentableEntitySerializer
|
|||
'id',
|
||||
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
||||
];
|
||||
Object value;
|
||||
value = object.createdAt;
|
||||
if (value != null) {
|
||||
if (object.createdAt != null) {
|
||||
result
|
||||
..add('created_at')
|
||||
..add(serializers.serialize(value, specifiedType: const FullType(int)));
|
||||
..add(serializers.serialize(object.createdAt,
|
||||
specifiedType: const FullType(int)));
|
||||
}
|
||||
value = object.updatedAt;
|
||||
if (value != null) {
|
||||
if (object.updatedAt != null) {
|
||||
result
|
||||
..add('updated_at')
|
||||
..add(serializers.serialize(value, specifiedType: const FullType(int)));
|
||||
..add(serializers.serialize(object.updatedAt,
|
||||
specifiedType: const FullType(int)));
|
||||
}
|
||||
value = object.invoiceId;
|
||||
if (value != null) {
|
||||
if (object.invoiceId != null) {
|
||||
result
|
||||
..add('invoice_id')
|
||||
..add(serializers.serialize(value,
|
||||
..add(serializers.serialize(object.invoiceId,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
value = object.creditId;
|
||||
if (value != null) {
|
||||
if (object.creditId != null) {
|
||||
result
|
||||
..add('credit_id')
|
||||
..add(serializers.serialize(value,
|
||||
..add(serializers.serialize(object.creditId,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
return result;
|
||||
|
|
@ -506,7 +494,7 @@ class _$PaymentableEntitySerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'created_at':
|
||||
result.createdAt = serializers.deserialize(value,
|
||||
|
|
@ -548,7 +536,9 @@ class _$PaymentListResponse extends PaymentListResponse {
|
|||
(new PaymentListResponseBuilder()..update(updates)).build();
|
||||
|
||||
_$PaymentListResponse._({this.data}) : super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(data, 'PaymentListResponse', 'data');
|
||||
if (data == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentListResponse', 'data');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -592,9 +582,8 @@ class PaymentListResponseBuilder
|
|||
PaymentListResponseBuilder();
|
||||
|
||||
PaymentListResponseBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_data = $v.data.toBuilder();
|
||||
if (_$v != null) {
|
||||
_data = _$v.data?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -602,7 +591,9 @@ class PaymentListResponseBuilder
|
|||
|
||||
@override
|
||||
void replace(PaymentListResponse other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PaymentListResponse;
|
||||
}
|
||||
|
||||
|
|
@ -641,7 +632,9 @@ class _$PaymentItemResponse extends PaymentItemResponse {
|
|||
(new PaymentItemResponseBuilder()..update(updates)).build();
|
||||
|
||||
_$PaymentItemResponse._({this.data}) : super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(data, 'PaymentItemResponse', 'data');
|
||||
if (data == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentItemResponse', 'data');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -684,9 +677,8 @@ class PaymentItemResponseBuilder
|
|||
PaymentItemResponseBuilder();
|
||||
|
||||
PaymentItemResponseBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_data = $v.data.toBuilder();
|
||||
if (_$v != null) {
|
||||
_data = _$v.data?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -694,7 +686,9 @@ class PaymentItemResponseBuilder
|
|||
|
||||
@override
|
||||
void replace(PaymentItemResponse other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PaymentItemResponse;
|
||||
}
|
||||
|
||||
|
|
@ -845,59 +839,97 @@ class _$PaymentEntity extends PaymentEntity {
|
|||
this.assignedUserId,
|
||||
this.id})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(amount, 'PaymentEntity', 'amount');
|
||||
BuiltValueNullFieldError.checkNotNull(applied, 'PaymentEntity', 'applied');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
refunded, 'PaymentEntity', 'refunded');
|
||||
BuiltValueNullFieldError.checkNotNull(number, 'PaymentEntity', 'number');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
clientId, 'PaymentEntity', 'clientId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
statusId, 'PaymentEntity', 'statusId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
transactionReference, 'PaymentEntity', 'transactionReference');
|
||||
BuiltValueNullFieldError.checkNotNull(date, 'PaymentEntity', 'date');
|
||||
BuiltValueNullFieldError.checkNotNull(typeId, 'PaymentEntity', 'typeId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
privateNotes, 'PaymentEntity', 'privateNotes');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
customValue1, 'PaymentEntity', 'customValue1');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
customValue2, 'PaymentEntity', 'customValue2');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
customValue3, 'PaymentEntity', 'customValue3');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
customValue4, 'PaymentEntity', 'customValue4');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
exchangeRate, 'PaymentEntity', 'exchangeRate');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
exchangeCurrencyId, 'PaymentEntity', 'exchangeCurrencyId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
isManual, 'PaymentEntity', 'isManual');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
projectId, 'PaymentEntity', 'projectId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
vendorId, 'PaymentEntity', 'vendorId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
invitationId, 'PaymentEntity', 'invitationId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
clientContactId, 'PaymentEntity', 'clientContactId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
companyGatewayId, 'PaymentEntity', 'companyGatewayId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
currencyId, 'PaymentEntity', 'currencyId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
paymentables, 'PaymentEntity', 'paymentables');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
invoices, 'PaymentEntity', 'invoices');
|
||||
BuiltValueNullFieldError.checkNotNull(credits, 'PaymentEntity', 'credits');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
createdAt, 'PaymentEntity', 'createdAt');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
updatedAt, 'PaymentEntity', 'updatedAt');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
archivedAt, 'PaymentEntity', 'archivedAt');
|
||||
BuiltValueNullFieldError.checkNotNull(id, 'PaymentEntity', 'id');
|
||||
if (amount == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'amount');
|
||||
}
|
||||
if (applied == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'applied');
|
||||
}
|
||||
if (refunded == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'refunded');
|
||||
}
|
||||
if (number == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'number');
|
||||
}
|
||||
if (clientId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'clientId');
|
||||
}
|
||||
if (statusId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'statusId');
|
||||
}
|
||||
if (transactionReference == null) {
|
||||
throw new BuiltValueNullFieldError(
|
||||
'PaymentEntity', 'transactionReference');
|
||||
}
|
||||
if (date == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'date');
|
||||
}
|
||||
if (typeId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'typeId');
|
||||
}
|
||||
if (privateNotes == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'privateNotes');
|
||||
}
|
||||
if (customValue1 == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'customValue1');
|
||||
}
|
||||
if (customValue2 == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'customValue2');
|
||||
}
|
||||
if (customValue3 == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'customValue3');
|
||||
}
|
||||
if (customValue4 == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'customValue4');
|
||||
}
|
||||
if (exchangeRate == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'exchangeRate');
|
||||
}
|
||||
if (exchangeCurrencyId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'exchangeCurrencyId');
|
||||
}
|
||||
if (isManual == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'isManual');
|
||||
}
|
||||
if (projectId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'projectId');
|
||||
}
|
||||
if (vendorId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'vendorId');
|
||||
}
|
||||
if (invitationId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'invitationId');
|
||||
}
|
||||
if (clientContactId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'clientContactId');
|
||||
}
|
||||
if (companyGatewayId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'companyGatewayId');
|
||||
}
|
||||
if (currencyId == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'currencyId');
|
||||
}
|
||||
if (paymentables == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'paymentables');
|
||||
}
|
||||
if (invoices == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'invoices');
|
||||
}
|
||||
if (credits == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'credits');
|
||||
}
|
||||
if (createdAt == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'createdAt');
|
||||
}
|
||||
if (updatedAt == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'updatedAt');
|
||||
}
|
||||
if (archivedAt == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'archivedAt');
|
||||
}
|
||||
if (id == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentEntity', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -1211,46 +1243,45 @@ class PaymentEntityBuilder
|
|||
PaymentEntityBuilder();
|
||||
|
||||
PaymentEntityBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_amount = $v.amount;
|
||||
_applied = $v.applied;
|
||||
_refunded = $v.refunded;
|
||||
_number = $v.number;
|
||||
_clientId = $v.clientId;
|
||||
_statusId = $v.statusId;
|
||||
_transactionReference = $v.transactionReference;
|
||||
_date = $v.date;
|
||||
_typeId = $v.typeId;
|
||||
_privateNotes = $v.privateNotes;
|
||||
_customValue1 = $v.customValue1;
|
||||
_customValue2 = $v.customValue2;
|
||||
_customValue3 = $v.customValue3;
|
||||
_customValue4 = $v.customValue4;
|
||||
_exchangeRate = $v.exchangeRate;
|
||||
_exchangeCurrencyId = $v.exchangeCurrencyId;
|
||||
_isManual = $v.isManual;
|
||||
_projectId = $v.projectId;
|
||||
_vendorId = $v.vendorId;
|
||||
_invitationId = $v.invitationId;
|
||||
_clientContactId = $v.clientContactId;
|
||||
_companyGatewayId = $v.companyGatewayId;
|
||||
_currencyId = $v.currencyId;
|
||||
_isForInvoice = $v.isForInvoice;
|
||||
_isApplying = $v.isApplying;
|
||||
_sendEmail = $v.sendEmail;
|
||||
_gatewayRefund = $v.gatewayRefund;
|
||||
_paymentables = $v.paymentables.toBuilder();
|
||||
_invoices = $v.invoices.toBuilder();
|
||||
_credits = $v.credits.toBuilder();
|
||||
_isChanged = $v.isChanged;
|
||||
_createdAt = $v.createdAt;
|
||||
_updatedAt = $v.updatedAt;
|
||||
_archivedAt = $v.archivedAt;
|
||||
_isDeleted = $v.isDeleted;
|
||||
_createdUserId = $v.createdUserId;
|
||||
_assignedUserId = $v.assignedUserId;
|
||||
_id = $v.id;
|
||||
if (_$v != null) {
|
||||
_amount = _$v.amount;
|
||||
_applied = _$v.applied;
|
||||
_refunded = _$v.refunded;
|
||||
_number = _$v.number;
|
||||
_clientId = _$v.clientId;
|
||||
_statusId = _$v.statusId;
|
||||
_transactionReference = _$v.transactionReference;
|
||||
_date = _$v.date;
|
||||
_typeId = _$v.typeId;
|
||||
_privateNotes = _$v.privateNotes;
|
||||
_customValue1 = _$v.customValue1;
|
||||
_customValue2 = _$v.customValue2;
|
||||
_customValue3 = _$v.customValue3;
|
||||
_customValue4 = _$v.customValue4;
|
||||
_exchangeRate = _$v.exchangeRate;
|
||||
_exchangeCurrencyId = _$v.exchangeCurrencyId;
|
||||
_isManual = _$v.isManual;
|
||||
_projectId = _$v.projectId;
|
||||
_vendorId = _$v.vendorId;
|
||||
_invitationId = _$v.invitationId;
|
||||
_clientContactId = _$v.clientContactId;
|
||||
_companyGatewayId = _$v.companyGatewayId;
|
||||
_currencyId = _$v.currencyId;
|
||||
_isForInvoice = _$v.isForInvoice;
|
||||
_isApplying = _$v.isApplying;
|
||||
_sendEmail = _$v.sendEmail;
|
||||
_gatewayRefund = _$v.gatewayRefund;
|
||||
_paymentables = _$v.paymentables?.toBuilder();
|
||||
_invoices = _$v.invoices?.toBuilder();
|
||||
_credits = _$v.credits?.toBuilder();
|
||||
_isChanged = _$v.isChanged;
|
||||
_createdAt = _$v.createdAt;
|
||||
_updatedAt = _$v.updatedAt;
|
||||
_archivedAt = _$v.archivedAt;
|
||||
_isDeleted = _$v.isDeleted;
|
||||
_createdUserId = _$v.createdUserId;
|
||||
_assignedUserId = _$v.assignedUserId;
|
||||
_id = _$v.id;
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -1258,7 +1289,9 @@ class PaymentEntityBuilder
|
|||
|
||||
@override
|
||||
void replace(PaymentEntity other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PaymentEntity;
|
||||
}
|
||||
|
||||
|
|
@ -1273,38 +1306,29 @@ class PaymentEntityBuilder
|
|||
try {
|
||||
_$result = _$v ??
|
||||
new _$PaymentEntity._(
|
||||
amount: BuiltValueNullFieldError.checkNotNull(
|
||||
amount, 'PaymentEntity', 'amount'),
|
||||
applied: BuiltValueNullFieldError.checkNotNull(
|
||||
applied, 'PaymentEntity', 'applied'),
|
||||
refunded: BuiltValueNullFieldError.checkNotNull(
|
||||
refunded, 'PaymentEntity', 'refunded'),
|
||||
number: BuiltValueNullFieldError.checkNotNull(
|
||||
number, 'PaymentEntity', 'number'),
|
||||
clientId: BuiltValueNullFieldError.checkNotNull(
|
||||
clientId, 'PaymentEntity', 'clientId'),
|
||||
statusId: BuiltValueNullFieldError.checkNotNull(
|
||||
statusId, 'PaymentEntity', 'statusId'),
|
||||
transactionReference: BuiltValueNullFieldError.checkNotNull(
|
||||
transactionReference, 'PaymentEntity', 'transactionReference'),
|
||||
date: BuiltValueNullFieldError.checkNotNull(
|
||||
date, 'PaymentEntity', 'date'),
|
||||
typeId: BuiltValueNullFieldError.checkNotNull(
|
||||
typeId, 'PaymentEntity', 'typeId'),
|
||||
privateNotes: BuiltValueNullFieldError.checkNotNull(privateNotes, 'PaymentEntity', 'privateNotes'),
|
||||
customValue1: BuiltValueNullFieldError.checkNotNull(customValue1, 'PaymentEntity', 'customValue1'),
|
||||
customValue2: BuiltValueNullFieldError.checkNotNull(customValue2, 'PaymentEntity', 'customValue2'),
|
||||
customValue3: BuiltValueNullFieldError.checkNotNull(customValue3, 'PaymentEntity', 'customValue3'),
|
||||
customValue4: BuiltValueNullFieldError.checkNotNull(customValue4, 'PaymentEntity', 'customValue4'),
|
||||
exchangeRate: BuiltValueNullFieldError.checkNotNull(exchangeRate, 'PaymentEntity', 'exchangeRate'),
|
||||
exchangeCurrencyId: BuiltValueNullFieldError.checkNotNull(exchangeCurrencyId, 'PaymentEntity', 'exchangeCurrencyId'),
|
||||
isManual: BuiltValueNullFieldError.checkNotNull(isManual, 'PaymentEntity', 'isManual'),
|
||||
projectId: BuiltValueNullFieldError.checkNotNull(projectId, 'PaymentEntity', 'projectId'),
|
||||
vendorId: BuiltValueNullFieldError.checkNotNull(vendorId, 'PaymentEntity', 'vendorId'),
|
||||
invitationId: BuiltValueNullFieldError.checkNotNull(invitationId, 'PaymentEntity', 'invitationId'),
|
||||
clientContactId: BuiltValueNullFieldError.checkNotNull(clientContactId, 'PaymentEntity', 'clientContactId'),
|
||||
companyGatewayId: BuiltValueNullFieldError.checkNotNull(companyGatewayId, 'PaymentEntity', 'companyGatewayId'),
|
||||
currencyId: BuiltValueNullFieldError.checkNotNull(currencyId, 'PaymentEntity', 'currencyId'),
|
||||
amount: amount,
|
||||
applied: applied,
|
||||
refunded: refunded,
|
||||
number: number,
|
||||
clientId: clientId,
|
||||
statusId: statusId,
|
||||
transactionReference: transactionReference,
|
||||
date: date,
|
||||
typeId: typeId,
|
||||
privateNotes: privateNotes,
|
||||
customValue1: customValue1,
|
||||
customValue2: customValue2,
|
||||
customValue3: customValue3,
|
||||
customValue4: customValue4,
|
||||
exchangeRate: exchangeRate,
|
||||
exchangeCurrencyId: exchangeCurrencyId,
|
||||
isManual: isManual,
|
||||
projectId: projectId,
|
||||
vendorId: vendorId,
|
||||
invitationId: invitationId,
|
||||
clientContactId: clientContactId,
|
||||
companyGatewayId: companyGatewayId,
|
||||
currencyId: currencyId,
|
||||
isForInvoice: isForInvoice,
|
||||
isApplying: isApplying,
|
||||
sendEmail: sendEmail,
|
||||
|
|
@ -1313,13 +1337,13 @@ class PaymentEntityBuilder
|
|||
invoices: invoices.build(),
|
||||
credits: credits.build(),
|
||||
isChanged: isChanged,
|
||||
createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, 'PaymentEntity', 'createdAt'),
|
||||
updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, 'PaymentEntity', 'updatedAt'),
|
||||
archivedAt: BuiltValueNullFieldError.checkNotNull(archivedAt, 'PaymentEntity', 'archivedAt'),
|
||||
createdAt: createdAt,
|
||||
updatedAt: updatedAt,
|
||||
archivedAt: archivedAt,
|
||||
isDeleted: isDeleted,
|
||||
createdUserId: createdUserId,
|
||||
assignedUserId: assignedUserId,
|
||||
id: BuiltValueNullFieldError.checkNotNull(id, 'PaymentEntity', 'id'));
|
||||
id: id);
|
||||
} catch (_) {
|
||||
String _$failedField;
|
||||
try {
|
||||
|
|
@ -1366,9 +1390,12 @@ class _$PaymentableEntity extends PaymentableEntity {
|
|||
this.amount,
|
||||
this.id})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
amount, 'PaymentableEntity', 'amount');
|
||||
BuiltValueNullFieldError.checkNotNull(id, 'PaymentableEntity', 'id');
|
||||
if (amount == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentableEntity', 'amount');
|
||||
}
|
||||
if (id == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentableEntity', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -1448,14 +1475,13 @@ class PaymentableEntityBuilder
|
|||
PaymentableEntityBuilder();
|
||||
|
||||
PaymentableEntityBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_createdAt = $v.createdAt;
|
||||
_updatedAt = $v.updatedAt;
|
||||
_invoiceId = $v.invoiceId;
|
||||
_creditId = $v.creditId;
|
||||
_amount = $v.amount;
|
||||
_id = $v.id;
|
||||
if (_$v != null) {
|
||||
_createdAt = _$v.createdAt;
|
||||
_updatedAt = _$v.updatedAt;
|
||||
_invoiceId = _$v.invoiceId;
|
||||
_creditId = _$v.creditId;
|
||||
_amount = _$v.amount;
|
||||
_id = _$v.id;
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -1463,7 +1489,9 @@ class PaymentableEntityBuilder
|
|||
|
||||
@override
|
||||
void replace(PaymentableEntity other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PaymentableEntity;
|
||||
}
|
||||
|
||||
|
|
@ -1480,10 +1508,8 @@ class PaymentableEntityBuilder
|
|||
updatedAt: updatedAt,
|
||||
invoiceId: invoiceId,
|
||||
creditId: creditId,
|
||||
amount: BuiltValueNullFieldError.checkNotNull(
|
||||
amount, 'PaymentableEntity', 'amount'),
|
||||
id: BuiltValueNullFieldError.checkNotNull(
|
||||
id, 'PaymentableEntity', 'id'));
|
||||
amount: amount,
|
||||
id: id);
|
||||
replace(_$result);
|
||||
return _$result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class _$PaymentTermListResponseSerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'data':
|
||||
result.data.replace(serializers.deserialize(value,
|
||||
|
|
@ -95,7 +95,7 @@ class _$PaymentTermItemResponseSerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'data':
|
||||
result.data.replace(serializers.deserialize(value,
|
||||
|
|
@ -136,33 +136,28 @@ class _$PaymentTermEntitySerializer
|
|||
'id',
|
||||
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
||||
];
|
||||
Object value;
|
||||
value = object.isChanged;
|
||||
if (value != null) {
|
||||
if (object.isChanged != null) {
|
||||
result
|
||||
..add('isChanged')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.isChanged,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.isDeleted;
|
||||
if (value != null) {
|
||||
if (object.isDeleted != null) {
|
||||
result
|
||||
..add('is_deleted')
|
||||
..add(
|
||||
serializers.serialize(value, specifiedType: const FullType(bool)));
|
||||
..add(serializers.serialize(object.isDeleted,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
value = object.createdUserId;
|
||||
if (value != null) {
|
||||
if (object.createdUserId != null) {
|
||||
result
|
||||
..add('user_id')
|
||||
..add(serializers.serialize(value,
|
||||
..add(serializers.serialize(object.createdUserId,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
value = object.assignedUserId;
|
||||
if (value != null) {
|
||||
if (object.assignedUserId != null) {
|
||||
result
|
||||
..add('assigned_user_id')
|
||||
..add(serializers.serialize(value,
|
||||
..add(serializers.serialize(object.assignedUserId,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
return result;
|
||||
|
|
@ -178,7 +173,7 @@ class _$PaymentTermEntitySerializer
|
|||
while (iterator.moveNext()) {
|
||||
final key = iterator.current as String;
|
||||
iterator.moveNext();
|
||||
final Object value = iterator.current;
|
||||
final dynamic value = iterator.current;
|
||||
switch (key) {
|
||||
case 'name':
|
||||
result.name = serializers.deserialize(value,
|
||||
|
|
@ -236,8 +231,9 @@ class _$PaymentTermListResponse extends PaymentTermListResponse {
|
|||
(new PaymentTermListResponseBuilder()..update(updates)).build();
|
||||
|
||||
_$PaymentTermListResponse._({this.data}) : super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
data, 'PaymentTermListResponse', 'data');
|
||||
if (data == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermListResponse', 'data');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -282,9 +278,8 @@ class PaymentTermListResponseBuilder
|
|||
PaymentTermListResponseBuilder();
|
||||
|
||||
PaymentTermListResponseBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_data = $v.data.toBuilder();
|
||||
if (_$v != null) {
|
||||
_data = _$v.data?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -292,7 +287,9 @@ class PaymentTermListResponseBuilder
|
|||
|
||||
@override
|
||||
void replace(PaymentTermListResponse other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PaymentTermListResponse;
|
||||
}
|
||||
|
||||
|
|
@ -331,8 +328,9 @@ class _$PaymentTermItemResponse extends PaymentTermItemResponse {
|
|||
(new PaymentTermItemResponseBuilder()..update(updates)).build();
|
||||
|
||||
_$PaymentTermItemResponse._({this.data}) : super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
data, 'PaymentTermItemResponse', 'data');
|
||||
if (data == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermItemResponse', 'data');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -377,9 +375,8 @@ class PaymentTermItemResponseBuilder
|
|||
PaymentTermItemResponseBuilder();
|
||||
|
||||
PaymentTermItemResponseBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_data = $v.data.toBuilder();
|
||||
if (_$v != null) {
|
||||
_data = _$v.data?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -387,7 +384,9 @@ class PaymentTermItemResponseBuilder
|
|||
|
||||
@override
|
||||
void replace(PaymentTermItemResponse other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PaymentTermItemResponse;
|
||||
}
|
||||
|
||||
|
|
@ -455,16 +454,24 @@ class _$PaymentTermEntity extends PaymentTermEntity {
|
|||
this.assignedUserId,
|
||||
this.id})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(name, 'PaymentTermEntity', 'name');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
numDays, 'PaymentTermEntity', 'numDays');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
createdAt, 'PaymentTermEntity', 'createdAt');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
updatedAt, 'PaymentTermEntity', 'updatedAt');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
archivedAt, 'PaymentTermEntity', 'archivedAt');
|
||||
BuiltValueNullFieldError.checkNotNull(id, 'PaymentTermEntity', 'id');
|
||||
if (name == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermEntity', 'name');
|
||||
}
|
||||
if (numDays == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermEntity', 'numDays');
|
||||
}
|
||||
if (createdAt == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermEntity', 'createdAt');
|
||||
}
|
||||
if (updatedAt == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermEntity', 'updatedAt');
|
||||
}
|
||||
if (archivedAt == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermEntity', 'archivedAt');
|
||||
}
|
||||
if (id == null) {
|
||||
throw new BuiltValueNullFieldError('PaymentTermEntity', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -580,18 +587,17 @@ class PaymentTermEntityBuilder
|
|||
PaymentTermEntityBuilder();
|
||||
|
||||
PaymentTermEntityBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_name = $v.name;
|
||||
_numDays = $v.numDays;
|
||||
_isChanged = $v.isChanged;
|
||||
_createdAt = $v.createdAt;
|
||||
_updatedAt = $v.updatedAt;
|
||||
_archivedAt = $v.archivedAt;
|
||||
_isDeleted = $v.isDeleted;
|
||||
_createdUserId = $v.createdUserId;
|
||||
_assignedUserId = $v.assignedUserId;
|
||||
_id = $v.id;
|
||||
if (_$v != null) {
|
||||
_name = _$v.name;
|
||||
_numDays = _$v.numDays;
|
||||
_isChanged = _$v.isChanged;
|
||||
_createdAt = _$v.createdAt;
|
||||
_updatedAt = _$v.updatedAt;
|
||||
_archivedAt = _$v.archivedAt;
|
||||
_isDeleted = _$v.isDeleted;
|
||||
_createdUserId = _$v.createdUserId;
|
||||
_assignedUserId = _$v.assignedUserId;
|
||||
_id = _$v.id;
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
|
|
@ -599,7 +605,9 @@ class PaymentTermEntityBuilder
|
|||
|
||||
@override
|
||||
void replace(PaymentTermEntity other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
if (other == null) {
|
||||
throw new ArgumentError.notNull('other');
|
||||
}
|
||||
_$v = other as _$PaymentTermEntity;
|
||||
}
|
||||
|
||||
|
|
@ -612,22 +620,16 @@ class PaymentTermEntityBuilder
|
|||
_$PaymentTermEntity build() {
|
||||
final _$result = _$v ??
|
||||
new _$PaymentTermEntity._(
|
||||
name: BuiltValueNullFieldError.checkNotNull(
|
||||
name, 'PaymentTermEntity', 'name'),
|
||||
numDays: BuiltValueNullFieldError.checkNotNull(
|
||||
numDays, 'PaymentTermEntity', 'numDays'),
|
||||
name: name,
|
||||
numDays: numDays,
|
||||
isChanged: isChanged,
|
||||
createdAt: BuiltValueNullFieldError.checkNotNull(
|
||||
createdAt, 'PaymentTermEntity', 'createdAt'),
|
||||
updatedAt: BuiltValueNullFieldError.checkNotNull(
|
||||
updatedAt, 'PaymentTermEntity', 'updatedAt'),
|
||||
archivedAt: BuiltValueNullFieldError.checkNotNull(
|
||||
archivedAt, 'PaymentTermEntity', 'archivedAt'),
|
||||
createdAt: createdAt,
|
||||
updatedAt: updatedAt,
|
||||
archivedAt: archivedAt,
|
||||
isDeleted: isDeleted,
|
||||
createdUserId: createdUserId,
|
||||
assignedUserId: assignedUserId,
|
||||
id: BuiltValueNullFieldError.checkNotNull(
|
||||
id, 'PaymentTermEntity', 'id'));
|
||||
id: id);
|
||||
replace(_$result);
|
||||
return _$result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
|||
..add(PaymentUIState.serializer)
|
||||
..add(PaymentableEntity.serializer)
|
||||
..add(PreImportResponse.serializer)
|
||||
..add(PreImportResponseEntityDetails.serializer)
|
||||
..add(PrefState.serializer)
|
||||
..add(ProductEntity.serializer)
|
||||
..add(ProductItemResponse.serializer)
|
||||
|
|
@ -194,14 +195,6 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
|||
..add(WebhookListResponse.serializer)
|
||||
..add(WebhookState.serializer)
|
||||
..add(WebhookUIState.serializer)
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [
|
||||
const FullType(BuiltList, const [const FullType(String)])
|
||||
]),
|
||||
() => new ListBuilder<BuiltList<String>>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(String)]),
|
||||
() => new ListBuilder<String>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(ClientEntity)]),
|
||||
() => new ListBuilder<ClientEntity>())
|
||||
|
|
@ -456,6 +449,12 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
|||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(SizeEntity)]), () => new ListBuilder<SizeEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [
|
||||
const FullType(BuiltList, const [const FullType(String)])
|
||||
]),
|
||||
() => new ListBuilder<BuiltList<String>>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(TaskEntity)]), () => new ListBuilder<TaskEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(TaskStatusEntity)]), () => new ListBuilder<TaskStatusEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(TaxRateEntity)]), () => new ListBuilder<TaxRateEntity>())
|
||||
|
|
@ -489,6 +488,14 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
|||
]),
|
||||
() => new MapBuilder<String, BuiltList<String>>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(ReportSettingsEntity)]), () => new MapBuilder<String, ReportSettingsEntity>())
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltMap, const [
|
||||
const FullType(String),
|
||||
const FullType(
|
||||
BuiltMap, const [const FullType(int), const FullType(String)])
|
||||
]),
|
||||
() => new MapBuilder<String, BuiltMap<int, String>>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(int), const FullType(String)]), () => new MapBuilder<int, String>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(ClientEntity)]), () => new MapBuilder<String, ClientEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(CompanyGatewayEntity)]), () => new MapBuilder<String, CompanyGatewayEntity>())
|
||||
|
|
@ -528,6 +535,7 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
|||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(PaymentTermEntity)]), () => new MapBuilder<String, PaymentTermEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(PreImportResponseEntityDetails)]), () => new MapBuilder<String, PreImportResponseEntityDetails>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(ProductEntity)]), () => new MapBuilder<String, ProductEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(ProjectEntity)]), () => new MapBuilder<String, ProjectEntity>())
|
||||
|
|
@ -554,8 +562,7 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
|||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(VendorEntity)]), () => new MapBuilder<String, VendorEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(WebhookEntity)]), () => new MapBuilder<String, WebhookEntity>())
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(int), const FullType(String)]), () => new MapBuilder<int, String>()))
|
||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>()))
|
||||
.build();
|
||||
|
||||
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new
|
||||
|
|
|
|||
Loading…
Reference in New Issue