Model fixes
This commit is contained in:
parent
af2ab41aa7
commit
23b7a1372a
|
|
@ -131,7 +131,6 @@ abstract class ClientEntity extends Object
|
||||||
String get groupId;
|
String get groupId;
|
||||||
|
|
||||||
@nullable
|
@nullable
|
||||||
@BuiltValueField(serialize: false)
|
|
||||||
int get lastUpdatedActivities;
|
int get lastUpdatedActivities;
|
||||||
|
|
||||||
bool get areActivitiesLoaded =>
|
bool get areActivitiesLoaded =>
|
||||||
|
|
|
||||||
|
|
@ -215,13 +215,13 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
||||||
serializers.serialize(object.gatewayTokens,
|
serializers.serialize(object.gatewayTokens,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
BuiltList, const [const FullType(GatewayTokenEntity)])),
|
BuiltList, const [const FullType(GatewayTokenEntity)])),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
|
if (object.lastUpdatedActivities != null) {
|
||||||
|
result
|
||||||
|
..add('lastUpdatedActivities')
|
||||||
|
..add(serializers.serialize(object.lastUpdatedActivities,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -234,6 +234,18 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -276,6 +288,10 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
||||||
result.groupId = serializers.deserialize(value,
|
result.groupId = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
|
case 'lastUpdatedActivities':
|
||||||
|
result.lastUpdatedActivities = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(int)) as int;
|
||||||
|
break;
|
||||||
case 'name':
|
case 'name':
|
||||||
result.name = serializers.deserialize(value,
|
result.name = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
|
|
@ -496,12 +512,6 @@ class _$ContactEntitySerializer implements StructuredSerializer<ContactEntity> {
|
||||||
'custom_value4',
|
'custom_value4',
|
||||||
serializers.serialize(object.customValue4,
|
serializers.serialize(object.customValue4,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.password != null) {
|
if (object.password != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -527,6 +537,18 @@ class _$ContactEntitySerializer implements StructuredSerializer<ContactEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -1084,12 +1106,6 @@ class _$ClientEntity extends ClientEntity {
|
||||||
if (gatewayTokens == null) {
|
if (gatewayTokens == null) {
|
||||||
throw new BuiltValueNullFieldError('ClientEntity', 'gatewayTokens');
|
throw new BuiltValueNullFieldError('ClientEntity', 'gatewayTokens');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ClientEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ClientEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -1672,12 +1688,6 @@ class _$ContactEntity extends ContactEntity {
|
||||||
if (customValue4 == null) {
|
if (customValue4 == null) {
|
||||||
throw new BuiltValueNullFieldError('ContactEntity', 'customValue4');
|
throw new BuiltValueNullFieldError('ContactEntity', 'customValue4');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ContactEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ContactEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -165,12 +165,6 @@ class _$CompanyGatewayEntitySerializer
|
||||||
'config',
|
'config',
|
||||||
serializers.serialize(object.config,
|
serializers.serialize(object.config,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -184,6 +178,18 @@ class _$CompanyGatewayEntitySerializer
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -741,12 +747,6 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
|
||||||
if (config == null) {
|
if (config == null) {
|
||||||
throw new BuiltValueNullFieldError('CompanyGatewayEntity', 'config');
|
throw new BuiltValueNullFieldError('CompanyGatewayEntity', 'config');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('CompanyGatewayEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('CompanyGatewayEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -185,12 +185,6 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
||||||
'settings',
|
'settings',
|
||||||
serializers.serialize(object.settings,
|
serializers.serialize(object.settings,
|
||||||
specifiedType: const FullType(SettingsEntity)),
|
specifiedType: const FullType(SettingsEntity)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.plan != null) {
|
if (object.plan != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -222,6 +216,18 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -2889,12 +2895,6 @@ class _$CompanyEntity extends CompanyEntity {
|
||||||
if (settings == null) {
|
if (settings == null) {
|
||||||
throw new BuiltValueNullFieldError('CompanyEntity', 'settings');
|
throw new BuiltValueNullFieldError('CompanyEntity', 'settings');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('CompanyEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('CompanyEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -131,12 +131,6 @@ class _$CreditEntitySerializer implements StructuredSerializer<CreditEntity> {
|
||||||
'client_id',
|
'client_id',
|
||||||
serializers.serialize(object.clientId,
|
serializers.serialize(object.clientId,
|
||||||
specifiedType: const FullType(int)),
|
specifiedType: const FullType(int)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -150,6 +144,18 @@ class _$CreditEntitySerializer implements StructuredSerializer<CreditEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -517,12 +523,6 @@ class _$CreditEntity extends CreditEntity {
|
||||||
if (clientId == null) {
|
if (clientId == null) {
|
||||||
throw new BuiltValueNullFieldError('CreditEntity', 'clientId');
|
throw new BuiltValueNullFieldError('CreditEntity', 'clientId');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('CreditEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('CreditEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -137,12 +137,6 @@ class _$DocumentEntitySerializer
|
||||||
'is_default',
|
'is_default',
|
||||||
serializers.serialize(object.isDefault,
|
serializers.serialize(object.isDefault,
|
||||||
specifiedType: const FullType(bool)),
|
specifiedType: const FullType(bool)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.invoiceId != null) {
|
if (object.invoiceId != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -204,6 +198,18 @@ class _$DocumentEntitySerializer
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -639,12 +645,6 @@ class _$DocumentEntity extends DocumentEntity {
|
||||||
if (isDefault == null) {
|
if (isDefault == null) {
|
||||||
throw new BuiltValueNullFieldError('DocumentEntity', 'isDefault');
|
throw new BuiltValueNullFieldError('DocumentEntity', 'isDefault');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('DocumentEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('DocumentEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -176,9 +176,11 @@ abstract class BaseEntity implements SelectableEntity {
|
||||||
@BuiltValueField(wireName: 'created_at')
|
@BuiltValueField(wireName: 'created_at')
|
||||||
int get createdAt;
|
int get createdAt;
|
||||||
|
|
||||||
|
@nullable
|
||||||
@BuiltValueField(wireName: 'updated_at')
|
@BuiltValueField(wireName: 'updated_at')
|
||||||
int get updatedAt;
|
int get updatedAt;
|
||||||
|
|
||||||
|
@nullable
|
||||||
@BuiltValueField(wireName: 'archived_at')
|
@BuiltValueField(wireName: 'archived_at')
|
||||||
int get archivedAt;
|
int get archivedAt;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -188,12 +188,6 @@ class _$ExpenseEntitySerializer implements StructuredSerializer<ExpenseEntity> {
|
||||||
'custom_value2',
|
'custom_value2',
|
||||||
serializers.serialize(object.customValue2,
|
serializers.serialize(object.customValue2,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.categoryId != null) {
|
if (object.categoryId != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -243,6 +237,18 @@ class _$ExpenseEntitySerializer implements StructuredSerializer<ExpenseEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -450,12 +456,6 @@ class _$ExpenseCategoryEntitySerializer
|
||||||
final result = <Object>[
|
final result = <Object>[
|
||||||
'name',
|
'name',
|
||||||
serializers.serialize(object.name, specifiedType: const FullType(String)),
|
serializers.serialize(object.name, specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -469,6 +469,18 @@ class _$ExpenseCategoryEntitySerializer
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -973,12 +985,6 @@ class _$ExpenseEntity extends ExpenseEntity {
|
||||||
if (customValue2 == null) {
|
if (customValue2 == null) {
|
||||||
throw new BuiltValueNullFieldError('ExpenseEntity', 'customValue2');
|
throw new BuiltValueNullFieldError('ExpenseEntity', 'customValue2');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ExpenseEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ExpenseEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -1413,12 +1419,6 @@ class _$ExpenseCategoryEntity extends ExpenseCategoryEntity {
|
||||||
if (name == null) {
|
if (name == null) {
|
||||||
throw new BuiltValueNullFieldError('ExpenseCategoryEntity', 'name');
|
throw new BuiltValueNullFieldError('ExpenseCategoryEntity', 'name');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ExpenseCategoryEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ExpenseCategoryEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -132,12 +132,6 @@ class _$GatewayTokenEntitySerializer
|
||||||
'is_default',
|
'is_default',
|
||||||
serializers.serialize(object.isDefault,
|
serializers.serialize(object.isDefault,
|
||||||
specifiedType: const FullType(bool)),
|
specifiedType: const FullType(bool)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -151,6 +145,18 @@ class _$GatewayTokenEntitySerializer
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -494,12 +500,6 @@ class _$GatewayTokenEntity extends GatewayTokenEntity {
|
||||||
if (isDefault == null) {
|
if (isDefault == null) {
|
||||||
throw new BuiltValueNullFieldError('GatewayTokenEntity', 'isDefault');
|
throw new BuiltValueNullFieldError('GatewayTokenEntity', 'isDefault');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('GatewayTokenEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('GatewayTokenEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -114,12 +114,6 @@ class _$GroupEntitySerializer implements StructuredSerializer<GroupEntity> {
|
||||||
'settings',
|
'settings',
|
||||||
serializers.serialize(object.settings,
|
serializers.serialize(object.settings,
|
||||||
specifiedType: const FullType(SettingsEntity)),
|
specifiedType: const FullType(SettingsEntity)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -133,6 +127,18 @@ class _$GroupEntitySerializer implements StructuredSerializer<GroupEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -446,12 +452,6 @@ class _$GroupEntity extends GroupEntity {
|
||||||
if (settings == null) {
|
if (settings == null) {
|
||||||
throw new BuiltValueNullFieldError('GroupEntity', 'settings');
|
throw new BuiltValueNullFieldError('GroupEntity', 'settings');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('GroupEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('GroupEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -222,12 +222,6 @@ class _$InvoiceEntitySerializer implements StructuredSerializer<InvoiceEntity> {
|
||||||
serializers.serialize(object.invitations,
|
serializers.serialize(object.invitations,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
BuiltList, const [const FullType(InvitationEntity)])),
|
BuiltList, const [const FullType(InvitationEntity)])),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.clientId != null) {
|
if (object.clientId != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -301,6 +295,18 @@ class _$InvoiceEntitySerializer implements StructuredSerializer<InvoiceEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -760,12 +766,6 @@ class _$InvitationEntitySerializer
|
||||||
'viewed_date',
|
'viewed_date',
|
||||||
serializers.serialize(object.viewedDate,
|
serializers.serialize(object.viewedDate,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -779,6 +779,18 @@ class _$InvitationEntitySerializer
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -1325,12 +1337,6 @@ class _$InvoiceEntity extends InvoiceEntity {
|
||||||
if (invitations == null) {
|
if (invitations == null) {
|
||||||
throw new BuiltValueNullFieldError('InvoiceEntity', 'invitations');
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'invitations');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('InvoiceEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('InvoiceEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -2295,12 +2301,6 @@ class _$InvitationEntity extends InvitationEntity {
|
||||||
if (viewedDate == null) {
|
if (viewedDate == null) {
|
||||||
throw new BuiltValueNullFieldError('InvitationEntity', 'viewedDate');
|
throw new BuiltValueNullFieldError('InvitationEntity', 'viewedDate');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('InvitationEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('InvitationEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -152,12 +152,6 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
|
||||||
serializers.serialize(object.credits,
|
serializers.serialize(object.credits,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
BuiltList, const [const FullType(PaymentableEntity)])),
|
BuiltList, const [const FullType(PaymentableEntity)])),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.number != null) {
|
if (object.number != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -243,6 +237,18 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -823,12 +829,6 @@ class _$PaymentEntity extends PaymentEntity {
|
||||||
if (credits == null) {
|
if (credits == null) {
|
||||||
throw new BuiltValueNullFieldError('PaymentEntity', 'credits');
|
throw new BuiltValueNullFieldError('PaymentEntity', 'credits');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('PaymentEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('PaymentEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -156,12 +156,6 @@ class _$ProductEntitySerializer implements StructuredSerializer<ProductEntity> {
|
||||||
'custom_value2',
|
'custom_value2',
|
||||||
serializers.serialize(object.customValue2,
|
serializers.serialize(object.customValue2,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.customValue3 != null) {
|
if (object.customValue3 != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -199,6 +193,18 @@ class _$ProductEntitySerializer implements StructuredSerializer<ProductEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -655,12 +661,6 @@ class _$ProductEntity extends ProductEntity {
|
||||||
if (customValue2 == null) {
|
if (customValue2 == null) {
|
||||||
throw new BuiltValueNullFieldError('ProductEntity', 'customValue2');
|
throw new BuiltValueNullFieldError('ProductEntity', 'customValue2');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ProductEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ProductEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -147,12 +147,6 @@ class _$ProjectEntitySerializer implements StructuredSerializer<ProjectEntity> {
|
||||||
'custom_value4',
|
'custom_value4',
|
||||||
serializers.serialize(object.customValue4,
|
serializers.serialize(object.customValue4,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -166,6 +160,18 @@ class _$ProjectEntitySerializer implements StructuredSerializer<ProjectEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -564,12 +570,6 @@ class _$ProjectEntity extends ProjectEntity {
|
||||||
if (customValue4 == null) {
|
if (customValue4 == null) {
|
||||||
throw new BuiltValueNullFieldError('ProjectEntity', 'customValue4');
|
throw new BuiltValueNullFieldError('ProjectEntity', 'customValue4');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ProjectEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ProjectEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -233,12 +233,6 @@ class _$QuoteEntitySerializer implements StructuredSerializer<QuoteEntity> {
|
||||||
serializers.serialize(object.invitations,
|
serializers.serialize(object.invitations,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
BuiltList, const [const FullType(InvitationEntity)])),
|
BuiltList, const [const FullType(InvitationEntity)])),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.invoiceNumber != null) {
|
if (object.invoiceNumber != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -276,6 +270,18 @@ class _$QuoteEntitySerializer implements StructuredSerializer<QuoteEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -557,12 +563,6 @@ class _$InvitationEntitySerializer
|
||||||
'viewed_date',
|
'viewed_date',
|
||||||
serializers.serialize(object.viewedDate,
|
serializers.serialize(object.viewedDate,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -576,6 +576,18 @@ class _$InvitationEntitySerializer
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -1142,12 +1154,6 @@ class _$QuoteEntity extends QuoteEntity {
|
||||||
if (invitations == null) {
|
if (invitations == null) {
|
||||||
throw new BuiltValueNullFieldError('QuoteEntity', 'invitations');
|
throw new BuiltValueNullFieldError('QuoteEntity', 'invitations');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('QuoteEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('QuoteEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -1753,12 +1759,6 @@ class _$InvitationEntity extends InvitationEntity {
|
||||||
if (viewedDate == null) {
|
if (viewedDate == null) {
|
||||||
throw new BuiltValueNullFieldError('InvitationEntity', 'viewedDate');
|
throw new BuiltValueNullFieldError('InvitationEntity', 'viewedDate');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('InvitationEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('InvitationEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -179,12 +179,6 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
|
||||||
'custom_value2',
|
'custom_value2',
|
||||||
serializers.serialize(object.customValue2,
|
serializers.serialize(object.customValue2,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.invoiceId != null) {
|
if (object.invoiceId != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -246,6 +240,18 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -797,12 +803,6 @@ class _$TaskEntity extends TaskEntity {
|
||||||
if (customValue2 == null) {
|
if (customValue2 == null) {
|
||||||
throw new BuiltValueNullFieldError('TaskEntity', 'customValue2');
|
throw new BuiltValueNullFieldError('TaskEntity', 'customValue2');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('TaskEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('TaskEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -122,12 +122,6 @@ class _$TaxRateEntitySerializer implements StructuredSerializer<TaxRateEntity> {
|
||||||
serializers.serialize(object.name, specifiedType: const FullType(String)),
|
serializers.serialize(object.name, specifiedType: const FullType(String)),
|
||||||
'rate',
|
'rate',
|
||||||
serializers.serialize(object.rate, specifiedType: const FullType(double)),
|
serializers.serialize(object.rate, specifiedType: const FullType(double)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -141,6 +135,18 @@ class _$TaxRateEntitySerializer implements StructuredSerializer<TaxRateEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -459,12 +465,6 @@ class _$TaxRateEntity extends TaxRateEntity {
|
||||||
if (rate == null) {
|
if (rate == null) {
|
||||||
throw new BuiltValueNullFieldError('TaxRateEntity', 'rate');
|
throw new BuiltValueNullFieldError('TaxRateEntity', 'rate');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('TaxRateEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('TaxRateEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -121,12 +121,6 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
||||||
'phone',
|
'phone',
|
||||||
serializers.serialize(object.phone,
|
serializers.serialize(object.phone,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.customValue1 != null) {
|
if (object.customValue1 != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -170,6 +164,18 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -539,12 +545,6 @@ class _$UserEntity extends UserEntity {
|
||||||
if (phone == null) {
|
if (phone == null) {
|
||||||
throw new BuiltValueNullFieldError('UserEntity', 'phone');
|
throw new BuiltValueNullFieldError('UserEntity', 'phone');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('UserEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('UserEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -162,12 +162,6 @@ class _$VendorEntitySerializer implements StructuredSerializer<VendorEntity> {
|
||||||
serializers.serialize(object.contacts,
|
serializers.serialize(object.contacts,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
BuiltList, const [const FullType(VendorContactEntity)])),
|
BuiltList, const [const FullType(VendorContactEntity)])),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.currencyId != null) {
|
if (object.currencyId != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -187,6 +181,18 @@ class _$VendorEntitySerializer implements StructuredSerializer<VendorEntity> {
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -368,12 +374,6 @@ class _$VendorContactEntitySerializer
|
||||||
'phone',
|
'phone',
|
||||||
serializers.serialize(object.phone,
|
serializers.serialize(object.phone,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'updated_at',
|
|
||||||
serializers.serialize(object.updatedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
'archived_at',
|
|
||||||
serializers.serialize(object.archivedAt,
|
|
||||||
specifiedType: const FullType(int)),
|
|
||||||
];
|
];
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -387,6 +387,18 @@ class _$VendorContactEntitySerializer
|
||||||
..add(serializers.serialize(object.createdAt,
|
..add(serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.updatedAt != null) {
|
||||||
|
result
|
||||||
|
..add('updated_at')
|
||||||
|
..add(serializers.serialize(object.updatedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
|
if (object.archivedAt != null) {
|
||||||
|
result
|
||||||
|
..add('archived_at')
|
||||||
|
..add(serializers.serialize(object.archivedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.isDeleted != null) {
|
if (object.isDeleted != null) {
|
||||||
result
|
result
|
||||||
..add('is_deleted')
|
..add('is_deleted')
|
||||||
|
|
@ -810,12 +822,6 @@ class _$VendorEntity extends VendorEntity {
|
||||||
if (contacts == null) {
|
if (contacts == null) {
|
||||||
throw new BuiltValueNullFieldError('VendorEntity', 'contacts');
|
throw new BuiltValueNullFieldError('VendorEntity', 'contacts');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('VendorEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('VendorEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -1202,12 +1208,6 @@ class _$VendorContactEntity extends VendorContactEntity {
|
||||||
if (phone == null) {
|
if (phone == null) {
|
||||||
throw new BuiltValueNullFieldError('VendorContactEntity', 'phone');
|
throw new BuiltValueNullFieldError('VendorContactEntity', 'phone');
|
||||||
}
|
}
|
||||||
if (updatedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('VendorContactEntity', 'updatedAt');
|
|
||||||
}
|
|
||||||
if (archivedAt == null) {
|
|
||||||
throw new BuiltValueNullFieldError('VendorContactEntity', 'archivedAt');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ class DecoratedFormField extends StatelessWidget {
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
this.hint,
|
this.hint,
|
||||||
this.expands = false,
|
this.expands = false,
|
||||||
|
this.autofocus = false,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final TextEditingController controller;
|
final TextEditingController controller;
|
||||||
|
|
@ -34,6 +35,7 @@ class DecoratedFormField extends StatelessWidget {
|
||||||
final bool autocorrect;
|
final bool autocorrect;
|
||||||
final bool obscureText;
|
final bool obscureText;
|
||||||
final bool expands;
|
final bool expands;
|
||||||
|
final bool autofocus;
|
||||||
final TextInputAction textInputAction;
|
final TextInputAction textInputAction;
|
||||||
final ValueChanged<String> onFieldSubmitted;
|
final ValueChanged<String> onFieldSubmitted;
|
||||||
final ValueChanged<String> onChanged;
|
final ValueChanged<String> onChanged;
|
||||||
|
|
@ -43,6 +45,7 @@ class DecoratedFormField extends StatelessWidget {
|
||||||
return TextFormField(
|
return TextFormField(
|
||||||
key: ValueKey(label),
|
key: ValueKey(label),
|
||||||
controller: controller,
|
controller: controller,
|
||||||
|
autofocus: autofocus,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: label,
|
labelText: label,
|
||||||
hintText: hint,
|
hintText: hint,
|
||||||
|
|
|
||||||
|
|
@ -239,9 +239,11 @@ class SettingsViewer extends StatelessWidget {
|
||||||
localization.counterPadding: settings.counterPadding?.toString(),
|
localization.counterPadding: settings.counterPadding?.toString(),
|
||||||
localization.sharedInvoiceQuoteCounter:
|
localization.sharedInvoiceQuoteCounter:
|
||||||
settings.sharedInvoiceQuoteCounter?.toString(),
|
settings.sharedInvoiceQuoteCounter?.toString(),
|
||||||
//localization.defaultInvoiceTerms: settings.defaultInvoiceTerms,
|
localization.invoiceTerms: settings.defaultInvoiceTerms,
|
||||||
//localization.defaultQuoteTerms: settings.defaultQuoteTerms,
|
localization.quoteTerms: settings.defaultQuoteTerms,
|
||||||
localization.quoteFooter: settings.defaultQuoteFooter?.toString(),
|
localization.quoteFooter: settings.defaultQuoteFooter,
|
||||||
|
localization.creditTerms: settings.defaultCreditTerms,
|
||||||
|
localization.creditFooter: settings.defaultCreditFooter,
|
||||||
localization.invoiceTaxRates:
|
localization.invoiceTaxRates:
|
||||||
settings.numberOfInvoiceTaxRates?.toString(),
|
settings.numberOfInvoiceTaxRates?.toString(),
|
||||||
localization.itemTaxRates: settings.numberOfItemTaxRates?.toString(),
|
localization.itemTaxRates: settings.numberOfItemTaxRates?.toString(),
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,8 @@ AppLayout calculateLayout(BuildContext context) {
|
||||||
|
|
||||||
if (size < kMobileLayoutWidth) {
|
if (size < kMobileLayoutWidth) {
|
||||||
return AppLayout.mobile;
|
return AppLayout.mobile;
|
||||||
} else if (size > kTabletLayoutWidth) {
|
|
||||||
return AppLayout.desktop;
|
|
||||||
} else {
|
} else {
|
||||||
return AppLayout.tablet;
|
return AppLayout.desktop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue