Update models
This commit is contained in:
parent
ec79f7c055
commit
0e307920d1
|
|
@ -114,6 +114,10 @@ class _$GroupEntitySerializer implements StructuredSerializer<GroupEntity> {
|
||||||
'settings',
|
'settings',
|
||||||
serializers.serialize(object.settings,
|
serializers.serialize(object.settings,
|
||||||
specifiedType: const FullType(SettingsEntity)),
|
specifiedType: const FullType(SettingsEntity)),
|
||||||
|
'documents',
|
||||||
|
serializers.serialize(object.documents,
|
||||||
|
specifiedType: const FullType(
|
||||||
|
BuiltList, const [const FullType(DocumentEntity)])),
|
||||||
'created_at',
|
'created_at',
|
||||||
serializers.serialize(object.createdAt,
|
serializers.serialize(object.createdAt,
|
||||||
specifiedType: const FullType(int)),
|
specifiedType: const FullType(int)),
|
||||||
|
|
@ -126,13 +130,6 @@ class _$GroupEntitySerializer implements StructuredSerializer<GroupEntity> {
|
||||||
'id',
|
'id',
|
||||||
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
||||||
];
|
];
|
||||||
if (object.documents != null) {
|
|
||||||
result
|
|
||||||
..add('documents')
|
|
||||||
..add(serializers.serialize(object.documents,
|
|
||||||
specifiedType: const FullType(
|
|
||||||
BuiltList, const [const FullType(DocumentEntity)])));
|
|
||||||
}
|
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -457,6 +454,9 @@ class _$GroupEntity extends GroupEntity {
|
||||||
if (settings == null) {
|
if (settings == null) {
|
||||||
throw new BuiltValueNullFieldError('GroupEntity', 'settings');
|
throw new BuiltValueNullFieldError('GroupEntity', 'settings');
|
||||||
}
|
}
|
||||||
|
if (documents == null) {
|
||||||
|
throw new BuiltValueNullFieldError('GroupEntity', 'documents');
|
||||||
|
}
|
||||||
if (createdAt == null) {
|
if (createdAt == null) {
|
||||||
throw new BuiltValueNullFieldError('GroupEntity', 'createdAt');
|
throw new BuiltValueNullFieldError('GroupEntity', 'createdAt');
|
||||||
}
|
}
|
||||||
|
|
@ -590,7 +590,9 @@ class GroupEntityBuilder implements Builder<GroupEntity, GroupEntityBuilder> {
|
||||||
String get id => _$this._id;
|
String get id => _$this._id;
|
||||||
set id(String id) => _$this._id = id;
|
set id(String id) => _$this._id = id;
|
||||||
|
|
||||||
GroupEntityBuilder();
|
GroupEntityBuilder() {
|
||||||
|
GroupEntity._initializeBuilder(this);
|
||||||
|
}
|
||||||
|
|
||||||
GroupEntityBuilder get _$this {
|
GroupEntityBuilder get _$this {
|
||||||
if (_$v != null) {
|
if (_$v != null) {
|
||||||
|
|
@ -631,7 +633,7 @@ class GroupEntityBuilder implements Builder<GroupEntity, GroupEntityBuilder> {
|
||||||
new _$GroupEntity._(
|
new _$GroupEntity._(
|
||||||
name: name,
|
name: name,
|
||||||
settings: settings.build(),
|
settings: settings.build(),
|
||||||
documents: _documents?.build(),
|
documents: documents.build(),
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
|
|
@ -646,7 +648,7 @@ class GroupEntityBuilder implements Builder<GroupEntity, GroupEntityBuilder> {
|
||||||
_$failedField = 'settings';
|
_$failedField = 'settings';
|
||||||
settings.build();
|
settings.build();
|
||||||
_$failedField = 'documents';
|
_$failedField = 'documents';
|
||||||
_documents?.build();
|
documents.build();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new BuiltValueNestedFieldError(
|
throw new BuiltValueNestedFieldError(
|
||||||
'GroupEntity', _$failedField, e.toString());
|
'GroupEntity', _$failedField, e.toString());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue