invoice/lib/data/models/static/payment_status_model.g.dart

157 lines
4.6 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'payment_status_model.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
Serializer<PaymentStatusEntity> _$paymentStatusEntitySerializer =
new _$PaymentStatusEntitySerializer();
class _$PaymentStatusEntitySerializer
implements StructuredSerializer<PaymentStatusEntity> {
@override
final Iterable<Type> types = const [
PaymentStatusEntity,
_$PaymentStatusEntity
];
@override
final String wireName = 'PaymentStatusEntity';
@override
Iterable<Object> serialize(
Serializers serializers, PaymentStatusEntity object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object>[
'id',
serializers.serialize(object.id, specifiedType: const FullType(String)),
'name',
serializers.serialize(object.name, specifiedType: const FullType(String)),
];
return result;
}
@override
PaymentStatusEntity deserialize(
Serializers serializers, Iterable<Object> serialized,
{FullType specifiedType = FullType.unspecified}) {
final result = new PaymentStatusEntityBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
final key = iterator.current as String;
iterator.moveNext();
final Object value = iterator.current;
switch (key) {
case 'id':
result.id = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'name':
result.name = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
}
}
return result.build();
}
}
class _$PaymentStatusEntity extends PaymentStatusEntity {
@override
final String id;
@override
final String name;
factory _$PaymentStatusEntity(
[void Function(PaymentStatusEntityBuilder) updates]) =>
(new PaymentStatusEntityBuilder()..update(updates)).build();
_$PaymentStatusEntity._({this.id, this.name}) : super._() {
BuiltValueNullFieldError.checkNotNull(id, 'PaymentStatusEntity', 'id');
BuiltValueNullFieldError.checkNotNull(name, 'PaymentStatusEntity', 'name');
}
@override
PaymentStatusEntity rebuild(
void Function(PaymentStatusEntityBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
PaymentStatusEntityBuilder toBuilder() =>
new PaymentStatusEntityBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is PaymentStatusEntity && id == other.id && name == other.name;
}
int __hashCode;
@override
int get hashCode {
return __hashCode ??= $jf($jc($jc(0, id.hashCode), name.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('PaymentStatusEntity')
..add('id', id)
..add('name', name))
.toString();
}
}
class PaymentStatusEntityBuilder
implements Builder<PaymentStatusEntity, PaymentStatusEntityBuilder> {
_$PaymentStatusEntity _$v;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
String _name;
String get name => _$this._name;
set name(String name) => _$this._name = name;
PaymentStatusEntityBuilder();
PaymentStatusEntityBuilder get _$this {
final $v = _$v;
if ($v != null) {
_id = $v.id;
_name = $v.name;
_$v = null;
}
return this;
}
@override
void replace(PaymentStatusEntity other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$PaymentStatusEntity;
}
@override
void update(void Function(PaymentStatusEntityBuilder) updates) {
if (updates != null) updates(this);
}
@override
_$PaymentStatusEntity build() {
final _$result = _$v ??
new _$PaymentStatusEntity._(
id: BuiltValueNullFieldError.checkNotNull(
id, 'PaymentStatusEntity', 'id'),
name: BuiltValueNullFieldError.checkNotNull(
name, 'PaymentStatusEntity', 'name'));
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,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new