invoice/lib/data/models/group_model.g.dart

651 lines
19 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'group_model.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
Serializer<GroupListResponse> _$groupListResponseSerializer =
new _$GroupListResponseSerializer();
Serializer<GroupItemResponse> _$groupItemResponseSerializer =
new _$GroupItemResponseSerializer();
Serializer<GroupEntity> _$groupEntitySerializer = new _$GroupEntitySerializer();
class _$GroupListResponseSerializer
implements StructuredSerializer<GroupListResponse> {
@override
final Iterable<Type> types = const [GroupListResponse, _$GroupListResponse];
@override
final String wireName = 'GroupListResponse';
@override
Iterable<Object> serialize(Serializers serializers, GroupListResponse object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object>[
'data',
serializers.serialize(object.data,
specifiedType:
const FullType(BuiltList, const [const FullType(GroupEntity)])),
];
return result;
}
@override
GroupListResponse deserialize(
Serializers serializers, Iterable<Object> serialized,
{FullType specifiedType = FullType.unspecified}) {
final result = new GroupListResponseBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
final key = iterator.current as String;
iterator.moveNext();
final dynamic value = iterator.current;
switch (key) {
case 'data':
result.data.replace(serializers.deserialize(value,
specifiedType: const FullType(
BuiltList, const [const FullType(GroupEntity)]))
as BuiltList<dynamic>);
break;
}
}
return result.build();
}
}
class _$GroupItemResponseSerializer
implements StructuredSerializer<GroupItemResponse> {
@override
final Iterable<Type> types = const [GroupItemResponse, _$GroupItemResponse];
@override
final String wireName = 'GroupItemResponse';
@override
Iterable<Object> serialize(Serializers serializers, GroupItemResponse object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object>[
'data',
serializers.serialize(object.data,
specifiedType: const FullType(GroupEntity)),
];
return result;
}
@override
GroupItemResponse deserialize(
Serializers serializers, Iterable<Object> serialized,
{FullType specifiedType = FullType.unspecified}) {
final result = new GroupItemResponseBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
final key = iterator.current as String;
iterator.moveNext();
final dynamic value = iterator.current;
switch (key) {
case 'data':
result.data.replace(serializers.deserialize(value,
specifiedType: const FullType(GroupEntity)) as GroupEntity);
break;
}
}
return result.build();
}
}
class _$GroupEntitySerializer implements StructuredSerializer<GroupEntity> {
@override
final Iterable<Type> types = const [GroupEntity, _$GroupEntity];
@override
final String wireName = 'GroupEntity';
@override
Iterable<Object> serialize(Serializers serializers, GroupEntity object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object>[
'name',
serializers.serialize(object.name, specifiedType: const FullType(String)),
'custom_value2',
serializers.serialize(object.customValue2,
specifiedType: const FullType(String)),
'settings',
serializers.serialize(object.settings,
specifiedType: const FullType(SettingsEntity)),
];
if (object.customValue1 != null) {
result
..add('custom_value1')
..add(serializers.serialize(object.customValue1,
specifiedType: const FullType(String)));
}
if (object.isChanged != null) {
result
..add('isChanged')
..add(serializers.serialize(object.isChanged,
specifiedType: const FullType(bool)));
}
if (object.createdAt != null) {
result
..add('created_at')
..add(serializers.serialize(object.createdAt,
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) {
result
..add('is_deleted')
..add(serializers.serialize(object.isDeleted,
specifiedType: const FullType(bool)));
}
if (object.isOwner != null) {
result
..add('is_owner')
..add(serializers.serialize(object.isOwner,
specifiedType: const FullType(bool)));
}
if (object.id != null) {
result
..add('id')
..add(serializers.serialize(object.id,
specifiedType: const FullType(String)));
}
return result;
}
@override
GroupEntity deserialize(Serializers serializers, Iterable<Object> serialized,
{FullType specifiedType = FullType.unspecified}) {
final result = new GroupEntityBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
final key = iterator.current as String;
iterator.moveNext();
final dynamic value = iterator.current;
switch (key) {
case 'name':
result.name = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'custom_value1':
result.customValue1 = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'custom_value2':
result.customValue2 = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'settings':
result.settings.replace(serializers.deserialize(value,
specifiedType: const FullType(SettingsEntity)) as SettingsEntity);
break;
case 'isChanged':
result.isChanged = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'created_at':
result.createdAt = serializers.deserialize(value,
specifiedType: const FullType(int)) as int;
break;
case 'updated_at':
result.updatedAt = serializers.deserialize(value,
specifiedType: const FullType(int)) as int;
break;
case 'archived_at':
result.archivedAt = serializers.deserialize(value,
specifiedType: const FullType(int)) as int;
break;
case 'is_deleted':
result.isDeleted = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'is_owner':
result.isOwner = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
}
}
return result.build();
}
}
class _$GroupListResponse extends GroupListResponse {
@override
final BuiltList<GroupEntity> data;
factory _$GroupListResponse(
[void Function(GroupListResponseBuilder) updates]) =>
(new GroupListResponseBuilder()..update(updates)).build();
_$GroupListResponse._({this.data}) : super._() {
if (data == null) {
throw new BuiltValueNullFieldError('GroupListResponse', 'data');
}
}
@override
GroupListResponse rebuild(void Function(GroupListResponseBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
GroupListResponseBuilder toBuilder() =>
new GroupListResponseBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is GroupListResponse && data == other.data;
}
@override
int get hashCode {
return $jf($jc(0, data.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('GroupListResponse')..add('data', data))
.toString();
}
}
class GroupListResponseBuilder
implements Builder<GroupListResponse, GroupListResponseBuilder> {
_$GroupListResponse _$v;
ListBuilder<GroupEntity> _data;
ListBuilder<GroupEntity> get data =>
_$this._data ??= new ListBuilder<GroupEntity>();
set data(ListBuilder<GroupEntity> data) => _$this._data = data;
GroupListResponseBuilder();
GroupListResponseBuilder get _$this {
if (_$v != null) {
_data = _$v.data?.toBuilder();
_$v = null;
}
return this;
}
@override
void replace(GroupListResponse other) {
if (other == null) {
throw new ArgumentError.notNull('other');
}
_$v = other as _$GroupListResponse;
}
@override
void update(void Function(GroupListResponseBuilder) updates) {
if (updates != null) updates(this);
}
@override
_$GroupListResponse build() {
_$GroupListResponse _$result;
try {
_$result = _$v ?? new _$GroupListResponse._(data: data.build());
} catch (_) {
String _$failedField;
try {
_$failedField = 'data';
data.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'GroupListResponse', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
class _$GroupItemResponse extends GroupItemResponse {
@override
final GroupEntity data;
factory _$GroupItemResponse(
[void Function(GroupItemResponseBuilder) updates]) =>
(new GroupItemResponseBuilder()..update(updates)).build();
_$GroupItemResponse._({this.data}) : super._() {
if (data == null) {
throw new BuiltValueNullFieldError('GroupItemResponse', 'data');
}
}
@override
GroupItemResponse rebuild(void Function(GroupItemResponseBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
GroupItemResponseBuilder toBuilder() =>
new GroupItemResponseBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is GroupItemResponse && data == other.data;
}
@override
int get hashCode {
return $jf($jc(0, data.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('GroupItemResponse')..add('data', data))
.toString();
}
}
class GroupItemResponseBuilder
implements Builder<GroupItemResponse, GroupItemResponseBuilder> {
_$GroupItemResponse _$v;
GroupEntityBuilder _data;
GroupEntityBuilder get data => _$this._data ??= new GroupEntityBuilder();
set data(GroupEntityBuilder data) => _$this._data = data;
GroupItemResponseBuilder();
GroupItemResponseBuilder get _$this {
if (_$v != null) {
_data = _$v.data?.toBuilder();
_$v = null;
}
return this;
}
@override
void replace(GroupItemResponse other) {
if (other == null) {
throw new ArgumentError.notNull('other');
}
_$v = other as _$GroupItemResponse;
}
@override
void update(void Function(GroupItemResponseBuilder) updates) {
if (updates != null) updates(this);
}
@override
_$GroupItemResponse build() {
_$GroupItemResponse _$result;
try {
_$result = _$v ?? new _$GroupItemResponse._(data: data.build());
} catch (_) {
String _$failedField;
try {
_$failedField = 'data';
data.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'GroupItemResponse', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
class _$GroupEntity extends GroupEntity {
@override
final String name;
@override
final String customValue1;
@override
final String customValue2;
@override
final SettingsEntity settings;
@override
final bool isChanged;
@override
final int createdAt;
@override
final int updatedAt;
@override
final int archivedAt;
@override
final bool isDeleted;
@override
final bool isOwner;
@override
final String id;
factory _$GroupEntity([void Function(GroupEntityBuilder) updates]) =>
(new GroupEntityBuilder()..update(updates)).build();
_$GroupEntity._(
{this.name,
this.customValue1,
this.customValue2,
this.settings,
this.isChanged,
this.createdAt,
this.updatedAt,
this.archivedAt,
this.isDeleted,
this.isOwner,
this.id})
: super._() {
if (name == null) {
throw new BuiltValueNullFieldError('GroupEntity', 'name');
}
if (customValue2 == null) {
throw new BuiltValueNullFieldError('GroupEntity', 'customValue2');
}
if (settings == null) {
throw new BuiltValueNullFieldError('GroupEntity', 'settings');
}
}
@override
GroupEntity rebuild(void Function(GroupEntityBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
GroupEntityBuilder toBuilder() => new GroupEntityBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is GroupEntity &&
name == other.name &&
customValue1 == other.customValue1 &&
customValue2 == other.customValue2 &&
settings == other.settings &&
isChanged == other.isChanged &&
createdAt == other.createdAt &&
updatedAt == other.updatedAt &&
archivedAt == other.archivedAt &&
isDeleted == other.isDeleted &&
isOwner == other.isOwner &&
id == other.id;
}
@override
int get hashCode {
return $jf($jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, name.hashCode),
customValue1.hashCode),
customValue2.hashCode),
settings.hashCode),
isChanged.hashCode),
createdAt.hashCode),
updatedAt.hashCode),
archivedAt.hashCode),
isDeleted.hashCode),
isOwner.hashCode),
id.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('GroupEntity')
..add('name', name)
..add('customValue1', customValue1)
..add('customValue2', customValue2)
..add('settings', settings)
..add('isChanged', isChanged)
..add('createdAt', createdAt)
..add('updatedAt', updatedAt)
..add('archivedAt', archivedAt)
..add('isDeleted', isDeleted)
..add('isOwner', isOwner)
..add('id', id))
.toString();
}
}
class GroupEntityBuilder implements Builder<GroupEntity, GroupEntityBuilder> {
_$GroupEntity _$v;
String _name;
String get name => _$this._name;
set name(String name) => _$this._name = name;
String _customValue1;
String get customValue1 => _$this._customValue1;
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
String _customValue2;
String get customValue2 => _$this._customValue2;
set customValue2(String customValue2) => _$this._customValue2 = customValue2;
SettingsEntityBuilder _settings;
SettingsEntityBuilder get settings =>
_$this._settings ??= new SettingsEntityBuilder();
set settings(SettingsEntityBuilder settings) => _$this._settings = settings;
bool _isChanged;
bool get isChanged => _$this._isChanged;
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
int _createdAt;
int get createdAt => _$this._createdAt;
set createdAt(int createdAt) => _$this._createdAt = createdAt;
int _updatedAt;
int get updatedAt => _$this._updatedAt;
set updatedAt(int updatedAt) => _$this._updatedAt = updatedAt;
int _archivedAt;
int get archivedAt => _$this._archivedAt;
set archivedAt(int archivedAt) => _$this._archivedAt = archivedAt;
bool _isDeleted;
bool get isDeleted => _$this._isDeleted;
set isDeleted(bool isDeleted) => _$this._isDeleted = isDeleted;
bool _isOwner;
bool get isOwner => _$this._isOwner;
set isOwner(bool isOwner) => _$this._isOwner = isOwner;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
GroupEntityBuilder();
GroupEntityBuilder get _$this {
if (_$v != null) {
_name = _$v.name;
_customValue1 = _$v.customValue1;
_customValue2 = _$v.customValue2;
_settings = _$v.settings?.toBuilder();
_isChanged = _$v.isChanged;
_createdAt = _$v.createdAt;
_updatedAt = _$v.updatedAt;
_archivedAt = _$v.archivedAt;
_isDeleted = _$v.isDeleted;
_isOwner = _$v.isOwner;
_id = _$v.id;
_$v = null;
}
return this;
}
@override
void replace(GroupEntity other) {
if (other == null) {
throw new ArgumentError.notNull('other');
}
_$v = other as _$GroupEntity;
}
@override
void update(void Function(GroupEntityBuilder) updates) {
if (updates != null) updates(this);
}
@override
_$GroupEntity build() {
_$GroupEntity _$result;
try {
_$result = _$v ??
new _$GroupEntity._(
name: name,
customValue1: customValue1,
customValue2: customValue2,
settings: settings.build(),
isChanged: isChanged,
createdAt: createdAt,
updatedAt: updatedAt,
archivedAt: archivedAt,
isDeleted: isDeleted,
isOwner: isOwner,
id: id);
} catch (_) {
String _$failedField;
try {
_$failedField = 'settings';
settings.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'GroupEntity', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
// 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