// GENERATED CODE - DO NOT MODIFY BY HAND part of 'subscription_model.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer _$subscriptionListResponseSerializer = new _$SubscriptionListResponseSerializer(); Serializer _$subscriptionItemResponseSerializer = new _$SubscriptionItemResponseSerializer(); Serializer _$subscriptionEntitySerializer = new _$SubscriptionEntitySerializer(); Serializer _$webhookConfigurationEntitySerializer = new _$WebhookConfigurationEntitySerializer(); class _$SubscriptionListResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ SubscriptionListResponse, _$SubscriptionListResponse ]; @override final String wireName = 'SubscriptionListResponse'; @override Iterable serialize( Serializers serializers, SubscriptionListResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType( BuiltList, const [const FullType(SubscriptionEntity)])), ]; return result; } @override SubscriptionListResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new SubscriptionListResponseBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'data': result.data.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(SubscriptionEntity)])) as BuiltList); break; } } return result.build(); } } class _$SubscriptionItemResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ SubscriptionItemResponse, _$SubscriptionItemResponse ]; @override final String wireName = 'SubscriptionItemResponse'; @override Iterable serialize( Serializers serializers, SubscriptionItemResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(SubscriptionEntity)), ]; return result; } @override SubscriptionItemResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new SubscriptionItemResponseBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'data': result.data.replace(serializers.deserialize(value, specifiedType: const FullType(SubscriptionEntity)) as SubscriptionEntity); break; } } return result.build(); } } class _$SubscriptionEntitySerializer implements StructuredSerializer { @override final Iterable types = const [SubscriptionEntity, _$SubscriptionEntity]; @override final String wireName = 'SubscriptionEntity'; @override Iterable serialize(Serializers serializers, SubscriptionEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), 'group_id', serializers.serialize(object.groupId, specifiedType: const FullType(String)), 'product_ids', serializers.serialize(object.productIds, specifiedType: const FullType(String)), 'recurring_product_ids', serializers.serialize(object.recurringProductIds, specifiedType: const FullType(String)), 'frequency_id', serializers.serialize(object.frequencyId, specifiedType: const FullType(String)), 'auto_bill', serializers.serialize(object.autoBill, specifiedType: const FullType(String)), 'promo_code', serializers.serialize(object.promoCode, specifiedType: const FullType(String)), 'promo_discount', serializers.serialize(object.promoDiscount, specifiedType: const FullType(double)), 'price', serializers.serialize(object.price, specifiedType: const FullType(double)), 'is_amount_discount', serializers.serialize(object.isAmountDiscount, specifiedType: const FullType(bool)), 'allow_cancellation', serializers.serialize(object.allowCancellation, specifiedType: const FullType(bool)), 'per_seat_enabled', serializers.serialize(object.perSeatEnabled, specifiedType: const FullType(bool)), 'max_seats_limit', serializers.serialize(object.maxSeatsLimit, specifiedType: const FullType(int)), 'trial_enabled', serializers.serialize(object.trialEnabled, specifiedType: const FullType(bool)), 'trial_duration', serializers.serialize(object.trialDuration, specifiedType: const FullType(int)), 'allow_query_overrides', serializers.serialize(object.allowQueryOverrides, specifiedType: const FullType(bool)), 'allow_plan_changes', serializers.serialize(object.allowPlanChanges, specifiedType: const FullType(bool)), 'refund_period', serializers.serialize(object.refundPeriod, specifiedType: const FullType(int)), 'webhook_configuration', serializers.serialize(object.webhookConfiguration, specifiedType: const FullType(WebhookConfigurationEntity)), 'purchase_page', serializers.serialize(object.purchasePage, specifiedType: const FullType(String)), 'created_at', serializers.serialize(object.createdAt, specifiedType: const FullType(int)), 'updated_at', serializers.serialize(object.updatedAt, specifiedType: const FullType(int)), 'archived_at', serializers.serialize(object.archivedAt, specifiedType: const FullType(int)), 'id', serializers.serialize(object.id, specifiedType: const FullType(String)), ]; Object value; value = object.isChanged; if (value != null) { result ..add('isChanged') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.isDeleted; if (value != null) { result ..add('is_deleted') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.createdUserId; if (value != null) { result ..add('user_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } value = object.assignedUserId; if (value != null) { result ..add('assigned_user_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } return result; } @override SubscriptionEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new SubscriptionEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'name': result.name = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'group_id': result.groupId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'product_ids': result.productIds = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'recurring_product_ids': result.recurringProductIds = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'frequency_id': result.frequencyId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'auto_bill': result.autoBill = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'promo_code': result.promoCode = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'promo_discount': result.promoDiscount = serializers.deserialize(value, specifiedType: const FullType(double)) as double; break; case 'price': result.price = serializers.deserialize(value, specifiedType: const FullType(double)) as double; break; case 'is_amount_discount': result.isAmountDiscount = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'allow_cancellation': result.allowCancellation = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'per_seat_enabled': result.perSeatEnabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'max_seats_limit': result.maxSeatsLimit = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'trial_enabled': result.trialEnabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'trial_duration': result.trialDuration = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'allow_query_overrides': result.allowQueryOverrides = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'allow_plan_changes': result.allowPlanChanges = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'refund_period': result.refundPeriod = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'webhook_configuration': result.webhookConfiguration.replace(serializers.deserialize(value, specifiedType: const FullType(WebhookConfigurationEntity)) as WebhookConfigurationEntity); break; case 'purchase_page': result.purchasePage = serializers.deserialize(value, specifiedType: const FullType(String)) as String; 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 'user_id': result.createdUserId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'assigned_user_id': result.assignedUserId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'id': result.id = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; } } return result.build(); } } class _$WebhookConfigurationEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ WebhookConfigurationEntity, _$WebhookConfigurationEntity ]; @override final String wireName = 'WebhookConfigurationEntity'; @override Iterable serialize( Serializers serializers, WebhookConfigurationEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'return_url', serializers.serialize(object.returnUrl, specifiedType: const FullType(String)), 'post_purchase_url', serializers.serialize(object.postPurchaseUrl, specifiedType: const FullType(String)), 'post_purchase_rest_method', serializers.serialize(object.postPurchaseRestMethod, specifiedType: const FullType(String)), 'post_purchase_headers', serializers.serialize(object.postPurchaseHeaders, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(String)])), 'post_purchase_body', serializers.serialize(object.postPurchaseBody, specifiedType: const FullType(String)), ]; return result; } @override WebhookConfigurationEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new WebhookConfigurationEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'return_url': result.returnUrl = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'post_purchase_url': result.postPurchaseUrl = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'post_purchase_rest_method': result.postPurchaseRestMethod = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'post_purchase_headers': result.postPurchaseHeaders.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(String)]))); break; case 'post_purchase_body': result.postPurchaseBody = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; } } return result.build(); } } class _$SubscriptionListResponse extends SubscriptionListResponse { @override final BuiltList data; factory _$SubscriptionListResponse( [void Function(SubscriptionListResponseBuilder) updates]) => (new SubscriptionListResponseBuilder()..update(updates)).build(); _$SubscriptionListResponse._({this.data}) : super._() { BuiltValueNullFieldError.checkNotNull( data, 'SubscriptionListResponse', 'data'); } @override SubscriptionListResponse rebuild( void Function(SubscriptionListResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override SubscriptionListResponseBuilder toBuilder() => new SubscriptionListResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is SubscriptionListResponse && data == other.data; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('SubscriptionListResponse') ..add('data', data)) .toString(); } } class SubscriptionListResponseBuilder implements Builder { _$SubscriptionListResponse _$v; ListBuilder _data; ListBuilder get data => _$this._data ??= new ListBuilder(); set data(ListBuilder data) => _$this._data = data; SubscriptionListResponseBuilder(); SubscriptionListResponseBuilder get _$this { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(SubscriptionListResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$SubscriptionListResponse; } @override void update(void Function(SubscriptionListResponseBuilder) updates) { if (updates != null) updates(this); } @override _$SubscriptionListResponse build() { _$SubscriptionListResponse _$result; try { _$result = _$v ?? new _$SubscriptionListResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'SubscriptionListResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$SubscriptionItemResponse extends SubscriptionItemResponse { @override final SubscriptionEntity data; factory _$SubscriptionItemResponse( [void Function(SubscriptionItemResponseBuilder) updates]) => (new SubscriptionItemResponseBuilder()..update(updates)).build(); _$SubscriptionItemResponse._({this.data}) : super._() { BuiltValueNullFieldError.checkNotNull( data, 'SubscriptionItemResponse', 'data'); } @override SubscriptionItemResponse rebuild( void Function(SubscriptionItemResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override SubscriptionItemResponseBuilder toBuilder() => new SubscriptionItemResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is SubscriptionItemResponse && data == other.data; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('SubscriptionItemResponse') ..add('data', data)) .toString(); } } class SubscriptionItemResponseBuilder implements Builder { _$SubscriptionItemResponse _$v; SubscriptionEntityBuilder _data; SubscriptionEntityBuilder get data => _$this._data ??= new SubscriptionEntityBuilder(); set data(SubscriptionEntityBuilder data) => _$this._data = data; SubscriptionItemResponseBuilder(); SubscriptionItemResponseBuilder get _$this { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(SubscriptionItemResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$SubscriptionItemResponse; } @override void update(void Function(SubscriptionItemResponseBuilder) updates) { if (updates != null) updates(this); } @override _$SubscriptionItemResponse build() { _$SubscriptionItemResponse _$result; try { _$result = _$v ?? new _$SubscriptionItemResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'SubscriptionItemResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$SubscriptionEntity extends SubscriptionEntity { @override final String name; @override final String groupId; @override final String productIds; @override final String recurringProductIds; @override final String frequencyId; @override final String autoBill; @override final String promoCode; @override final double promoDiscount; @override final double price; @override final bool isAmountDiscount; @override final bool allowCancellation; @override final bool perSeatEnabled; @override final int maxSeatsLimit; @override final bool trialEnabled; @override final int trialDuration; @override final bool allowQueryOverrides; @override final bool allowPlanChanges; @override final int refundPeriod; @override final WebhookConfigurationEntity webhookConfiguration; @override final String purchasePage; @override final bool isChanged; @override final int createdAt; @override final int updatedAt; @override final int archivedAt; @override final bool isDeleted; @override final String createdUserId; @override final String assignedUserId; @override final String id; factory _$SubscriptionEntity( [void Function(SubscriptionEntityBuilder) updates]) => (new SubscriptionEntityBuilder()..update(updates)).build(); _$SubscriptionEntity._( {this.name, this.groupId, this.productIds, this.recurringProductIds, this.frequencyId, this.autoBill, this.promoCode, this.promoDiscount, this.price, this.isAmountDiscount, this.allowCancellation, this.perSeatEnabled, this.maxSeatsLimit, this.trialEnabled, this.trialDuration, this.allowQueryOverrides, this.allowPlanChanges, this.refundPeriod, this.webhookConfiguration, this.purchasePage, this.isChanged, this.createdAt, this.updatedAt, this.archivedAt, this.isDeleted, this.createdUserId, this.assignedUserId, this.id}) : super._() { BuiltValueNullFieldError.checkNotNull(name, 'SubscriptionEntity', 'name'); BuiltValueNullFieldError.checkNotNull( groupId, 'SubscriptionEntity', 'groupId'); BuiltValueNullFieldError.checkNotNull( productIds, 'SubscriptionEntity', 'productIds'); BuiltValueNullFieldError.checkNotNull( recurringProductIds, 'SubscriptionEntity', 'recurringProductIds'); BuiltValueNullFieldError.checkNotNull( frequencyId, 'SubscriptionEntity', 'frequencyId'); BuiltValueNullFieldError.checkNotNull( autoBill, 'SubscriptionEntity', 'autoBill'); BuiltValueNullFieldError.checkNotNull( promoCode, 'SubscriptionEntity', 'promoCode'); BuiltValueNullFieldError.checkNotNull( promoDiscount, 'SubscriptionEntity', 'promoDiscount'); BuiltValueNullFieldError.checkNotNull(price, 'SubscriptionEntity', 'price'); BuiltValueNullFieldError.checkNotNull( isAmountDiscount, 'SubscriptionEntity', 'isAmountDiscount'); BuiltValueNullFieldError.checkNotNull( allowCancellation, 'SubscriptionEntity', 'allowCancellation'); BuiltValueNullFieldError.checkNotNull( perSeatEnabled, 'SubscriptionEntity', 'perSeatEnabled'); BuiltValueNullFieldError.checkNotNull( maxSeatsLimit, 'SubscriptionEntity', 'maxSeatsLimit'); BuiltValueNullFieldError.checkNotNull( trialEnabled, 'SubscriptionEntity', 'trialEnabled'); BuiltValueNullFieldError.checkNotNull( trialDuration, 'SubscriptionEntity', 'trialDuration'); BuiltValueNullFieldError.checkNotNull( allowQueryOverrides, 'SubscriptionEntity', 'allowQueryOverrides'); BuiltValueNullFieldError.checkNotNull( allowPlanChanges, 'SubscriptionEntity', 'allowPlanChanges'); BuiltValueNullFieldError.checkNotNull( refundPeriod, 'SubscriptionEntity', 'refundPeriod'); BuiltValueNullFieldError.checkNotNull( webhookConfiguration, 'SubscriptionEntity', 'webhookConfiguration'); BuiltValueNullFieldError.checkNotNull( purchasePage, 'SubscriptionEntity', 'purchasePage'); BuiltValueNullFieldError.checkNotNull( createdAt, 'SubscriptionEntity', 'createdAt'); BuiltValueNullFieldError.checkNotNull( updatedAt, 'SubscriptionEntity', 'updatedAt'); BuiltValueNullFieldError.checkNotNull( archivedAt, 'SubscriptionEntity', 'archivedAt'); BuiltValueNullFieldError.checkNotNull(id, 'SubscriptionEntity', 'id'); } @override SubscriptionEntity rebuild( void Function(SubscriptionEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override SubscriptionEntityBuilder toBuilder() => new SubscriptionEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is SubscriptionEntity && name == other.name && groupId == other.groupId && productIds == other.productIds && recurringProductIds == other.recurringProductIds && frequencyId == other.frequencyId && autoBill == other.autoBill && promoCode == other.promoCode && promoDiscount == other.promoDiscount && price == other.price && isAmountDiscount == other.isAmountDiscount && allowCancellation == other.allowCancellation && perSeatEnabled == other.perSeatEnabled && maxSeatsLimit == other.maxSeatsLimit && trialEnabled == other.trialEnabled && trialDuration == other.trialDuration && allowQueryOverrides == other.allowQueryOverrides && allowPlanChanges == other.allowPlanChanges && refundPeriod == other.refundPeriod && webhookConfiguration == other.webhookConfiguration && purchasePage == other.purchasePage && isChanged == other.isChanged && createdAt == other.createdAt && updatedAt == other.updatedAt && archivedAt == other.archivedAt && isDeleted == other.isDeleted && createdUserId == other.createdUserId && assignedUserId == other.assignedUserId && id == other.id; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), groupId.hashCode), productIds.hashCode), recurringProductIds.hashCode), frequencyId.hashCode), autoBill.hashCode), promoCode.hashCode), promoDiscount.hashCode), price.hashCode), isAmountDiscount.hashCode), allowCancellation.hashCode), perSeatEnabled.hashCode), maxSeatsLimit.hashCode), trialEnabled.hashCode), trialDuration.hashCode), allowQueryOverrides.hashCode), allowPlanChanges.hashCode), refundPeriod.hashCode), webhookConfiguration.hashCode), purchasePage.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode), createdUserId.hashCode), assignedUserId.hashCode), id.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('SubscriptionEntity') ..add('name', name) ..add('groupId', groupId) ..add('productIds', productIds) ..add('recurringProductIds', recurringProductIds) ..add('frequencyId', frequencyId) ..add('autoBill', autoBill) ..add('promoCode', promoCode) ..add('promoDiscount', promoDiscount) ..add('price', price) ..add('isAmountDiscount', isAmountDiscount) ..add('allowCancellation', allowCancellation) ..add('perSeatEnabled', perSeatEnabled) ..add('maxSeatsLimit', maxSeatsLimit) ..add('trialEnabled', trialEnabled) ..add('trialDuration', trialDuration) ..add('allowQueryOverrides', allowQueryOverrides) ..add('allowPlanChanges', allowPlanChanges) ..add('refundPeriod', refundPeriod) ..add('webhookConfiguration', webhookConfiguration) ..add('purchasePage', purchasePage) ..add('isChanged', isChanged) ..add('createdAt', createdAt) ..add('updatedAt', updatedAt) ..add('archivedAt', archivedAt) ..add('isDeleted', isDeleted) ..add('createdUserId', createdUserId) ..add('assignedUserId', assignedUserId) ..add('id', id)) .toString(); } } class SubscriptionEntityBuilder implements Builder { _$SubscriptionEntity _$v; String _name; String get name => _$this._name; set name(String name) => _$this._name = name; String _groupId; String get groupId => _$this._groupId; set groupId(String groupId) => _$this._groupId = groupId; String _productIds; String get productIds => _$this._productIds; set productIds(String productIds) => _$this._productIds = productIds; String _recurringProductIds; String get recurringProductIds => _$this._recurringProductIds; set recurringProductIds(String recurringProductIds) => _$this._recurringProductIds = recurringProductIds; String _frequencyId; String get frequencyId => _$this._frequencyId; set frequencyId(String frequencyId) => _$this._frequencyId = frequencyId; String _autoBill; String get autoBill => _$this._autoBill; set autoBill(String autoBill) => _$this._autoBill = autoBill; String _promoCode; String get promoCode => _$this._promoCode; set promoCode(String promoCode) => _$this._promoCode = promoCode; double _promoDiscount; double get promoDiscount => _$this._promoDiscount; set promoDiscount(double promoDiscount) => _$this._promoDiscount = promoDiscount; double _price; double get price => _$this._price; set price(double price) => _$this._price = price; bool _isAmountDiscount; bool get isAmountDiscount => _$this._isAmountDiscount; set isAmountDiscount(bool isAmountDiscount) => _$this._isAmountDiscount = isAmountDiscount; bool _allowCancellation; bool get allowCancellation => _$this._allowCancellation; set allowCancellation(bool allowCancellation) => _$this._allowCancellation = allowCancellation; bool _perSeatEnabled; bool get perSeatEnabled => _$this._perSeatEnabled; set perSeatEnabled(bool perSeatEnabled) => _$this._perSeatEnabled = perSeatEnabled; int _maxSeatsLimit; int get maxSeatsLimit => _$this._maxSeatsLimit; set maxSeatsLimit(int maxSeatsLimit) => _$this._maxSeatsLimit = maxSeatsLimit; bool _trialEnabled; bool get trialEnabled => _$this._trialEnabled; set trialEnabled(bool trialEnabled) => _$this._trialEnabled = trialEnabled; int _trialDuration; int get trialDuration => _$this._trialDuration; set trialDuration(int trialDuration) => _$this._trialDuration = trialDuration; bool _allowQueryOverrides; bool get allowQueryOverrides => _$this._allowQueryOverrides; set allowQueryOverrides(bool allowQueryOverrides) => _$this._allowQueryOverrides = allowQueryOverrides; bool _allowPlanChanges; bool get allowPlanChanges => _$this._allowPlanChanges; set allowPlanChanges(bool allowPlanChanges) => _$this._allowPlanChanges = allowPlanChanges; int _refundPeriod; int get refundPeriod => _$this._refundPeriod; set refundPeriod(int refundPeriod) => _$this._refundPeriod = refundPeriod; WebhookConfigurationEntityBuilder _webhookConfiguration; WebhookConfigurationEntityBuilder get webhookConfiguration => _$this._webhookConfiguration ??= new WebhookConfigurationEntityBuilder(); set webhookConfiguration( WebhookConfigurationEntityBuilder webhookConfiguration) => _$this._webhookConfiguration = webhookConfiguration; String _purchasePage; String get purchasePage => _$this._purchasePage; set purchasePage(String purchasePage) => _$this._purchasePage = purchasePage; 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; String _createdUserId; String get createdUserId => _$this._createdUserId; set createdUserId(String createdUserId) => _$this._createdUserId = createdUserId; String _assignedUserId; String get assignedUserId => _$this._assignedUserId; set assignedUserId(String assignedUserId) => _$this._assignedUserId = assignedUserId; String _id; String get id => _$this._id; set id(String id) => _$this._id = id; SubscriptionEntityBuilder(); SubscriptionEntityBuilder get _$this { final $v = _$v; if ($v != null) { _name = $v.name; _groupId = $v.groupId; _productIds = $v.productIds; _recurringProductIds = $v.recurringProductIds; _frequencyId = $v.frequencyId; _autoBill = $v.autoBill; _promoCode = $v.promoCode; _promoDiscount = $v.promoDiscount; _price = $v.price; _isAmountDiscount = $v.isAmountDiscount; _allowCancellation = $v.allowCancellation; _perSeatEnabled = $v.perSeatEnabled; _maxSeatsLimit = $v.maxSeatsLimit; _trialEnabled = $v.trialEnabled; _trialDuration = $v.trialDuration; _allowQueryOverrides = $v.allowQueryOverrides; _allowPlanChanges = $v.allowPlanChanges; _refundPeriod = $v.refundPeriod; _webhookConfiguration = $v.webhookConfiguration.toBuilder(); _purchasePage = $v.purchasePage; _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; } @override void replace(SubscriptionEntity other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$SubscriptionEntity; } @override void update(void Function(SubscriptionEntityBuilder) updates) { if (updates != null) updates(this); } @override _$SubscriptionEntity build() { _$SubscriptionEntity _$result; try { _$result = _$v ?? new _$SubscriptionEntity._( name: BuiltValueNullFieldError.checkNotNull( name, 'SubscriptionEntity', 'name'), groupId: BuiltValueNullFieldError.checkNotNull( groupId, 'SubscriptionEntity', 'groupId'), productIds: BuiltValueNullFieldError.checkNotNull( productIds, 'SubscriptionEntity', 'productIds'), recurringProductIds: BuiltValueNullFieldError.checkNotNull( recurringProductIds, 'SubscriptionEntity', 'recurringProductIds'), frequencyId: BuiltValueNullFieldError.checkNotNull( frequencyId, 'SubscriptionEntity', 'frequencyId'), autoBill: BuiltValueNullFieldError.checkNotNull( autoBill, 'SubscriptionEntity', 'autoBill'), promoCode: BuiltValueNullFieldError.checkNotNull( promoCode, 'SubscriptionEntity', 'promoCode'), promoDiscount: BuiltValueNullFieldError.checkNotNull(promoDiscount, 'SubscriptionEntity', 'promoDiscount'), price: BuiltValueNullFieldError.checkNotNull(price, 'SubscriptionEntity', 'price'), isAmountDiscount: BuiltValueNullFieldError.checkNotNull(isAmountDiscount, 'SubscriptionEntity', 'isAmountDiscount'), allowCancellation: BuiltValueNullFieldError.checkNotNull(allowCancellation, 'SubscriptionEntity', 'allowCancellation'), perSeatEnabled: BuiltValueNullFieldError.checkNotNull(perSeatEnabled, 'SubscriptionEntity', 'perSeatEnabled'), maxSeatsLimit: BuiltValueNullFieldError.checkNotNull(maxSeatsLimit, 'SubscriptionEntity', 'maxSeatsLimit'), trialEnabled: BuiltValueNullFieldError.checkNotNull(trialEnabled, 'SubscriptionEntity', 'trialEnabled'), trialDuration: BuiltValueNullFieldError.checkNotNull(trialDuration, 'SubscriptionEntity', 'trialDuration'), allowQueryOverrides: BuiltValueNullFieldError.checkNotNull(allowQueryOverrides, 'SubscriptionEntity', 'allowQueryOverrides'), allowPlanChanges: BuiltValueNullFieldError.checkNotNull(allowPlanChanges, 'SubscriptionEntity', 'allowPlanChanges'), refundPeriod: BuiltValueNullFieldError.checkNotNull(refundPeriod, 'SubscriptionEntity', 'refundPeriod'), webhookConfiguration: webhookConfiguration.build(), purchasePage: BuiltValueNullFieldError.checkNotNull(purchasePage, 'SubscriptionEntity', 'purchasePage'), isChanged: isChanged, createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, 'SubscriptionEntity', 'createdAt'), updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, 'SubscriptionEntity', 'updatedAt'), archivedAt: BuiltValueNullFieldError.checkNotNull(archivedAt, 'SubscriptionEntity', 'archivedAt'), isDeleted: isDeleted, createdUserId: createdUserId, assignedUserId: assignedUserId, id: BuiltValueNullFieldError.checkNotNull(id, 'SubscriptionEntity', 'id')); } catch (_) { String _$failedField; try { _$failedField = 'webhookConfiguration'; webhookConfiguration.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'SubscriptionEntity', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$WebhookConfigurationEntity extends WebhookConfigurationEntity { @override final String returnUrl; @override final String postPurchaseUrl; @override final String postPurchaseRestMethod; @override final BuiltMap postPurchaseHeaders; @override final String postPurchaseBody; factory _$WebhookConfigurationEntity( [void Function(WebhookConfigurationEntityBuilder) updates]) => (new WebhookConfigurationEntityBuilder()..update(updates)).build(); _$WebhookConfigurationEntity._( {this.returnUrl, this.postPurchaseUrl, this.postPurchaseRestMethod, this.postPurchaseHeaders, this.postPurchaseBody}) : super._() { BuiltValueNullFieldError.checkNotNull( returnUrl, 'WebhookConfigurationEntity', 'returnUrl'); BuiltValueNullFieldError.checkNotNull( postPurchaseUrl, 'WebhookConfigurationEntity', 'postPurchaseUrl'); BuiltValueNullFieldError.checkNotNull(postPurchaseRestMethod, 'WebhookConfigurationEntity', 'postPurchaseRestMethod'); BuiltValueNullFieldError.checkNotNull(postPurchaseHeaders, 'WebhookConfigurationEntity', 'postPurchaseHeaders'); BuiltValueNullFieldError.checkNotNull( postPurchaseBody, 'WebhookConfigurationEntity', 'postPurchaseBody'); } @override WebhookConfigurationEntity rebuild( void Function(WebhookConfigurationEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override WebhookConfigurationEntityBuilder toBuilder() => new WebhookConfigurationEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is WebhookConfigurationEntity && returnUrl == other.returnUrl && postPurchaseUrl == other.postPurchaseUrl && postPurchaseRestMethod == other.postPurchaseRestMethod && postPurchaseHeaders == other.postPurchaseHeaders && postPurchaseBody == other.postPurchaseBody; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc( $jc( $jc($jc($jc(0, returnUrl.hashCode), postPurchaseUrl.hashCode), postPurchaseRestMethod.hashCode), postPurchaseHeaders.hashCode), postPurchaseBody.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('WebhookConfigurationEntity') ..add('returnUrl', returnUrl) ..add('postPurchaseUrl', postPurchaseUrl) ..add('postPurchaseRestMethod', postPurchaseRestMethod) ..add('postPurchaseHeaders', postPurchaseHeaders) ..add('postPurchaseBody', postPurchaseBody)) .toString(); } } class WebhookConfigurationEntityBuilder implements Builder { _$WebhookConfigurationEntity _$v; String _returnUrl; String get returnUrl => _$this._returnUrl; set returnUrl(String returnUrl) => _$this._returnUrl = returnUrl; String _postPurchaseUrl; String get postPurchaseUrl => _$this._postPurchaseUrl; set postPurchaseUrl(String postPurchaseUrl) => _$this._postPurchaseUrl = postPurchaseUrl; String _postPurchaseRestMethod; String get postPurchaseRestMethod => _$this._postPurchaseRestMethod; set postPurchaseRestMethod(String postPurchaseRestMethod) => _$this._postPurchaseRestMethod = postPurchaseRestMethod; MapBuilder _postPurchaseHeaders; MapBuilder get postPurchaseHeaders => _$this._postPurchaseHeaders ??= new MapBuilder(); set postPurchaseHeaders(MapBuilder postPurchaseHeaders) => _$this._postPurchaseHeaders = postPurchaseHeaders; String _postPurchaseBody; String get postPurchaseBody => _$this._postPurchaseBody; set postPurchaseBody(String postPurchaseBody) => _$this._postPurchaseBody = postPurchaseBody; WebhookConfigurationEntityBuilder() { WebhookConfigurationEntity._initializeBuilder(this); } WebhookConfigurationEntityBuilder get _$this { final $v = _$v; if ($v != null) { _returnUrl = $v.returnUrl; _postPurchaseUrl = $v.postPurchaseUrl; _postPurchaseRestMethod = $v.postPurchaseRestMethod; _postPurchaseHeaders = $v.postPurchaseHeaders.toBuilder(); _postPurchaseBody = $v.postPurchaseBody; _$v = null; } return this; } @override void replace(WebhookConfigurationEntity other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$WebhookConfigurationEntity; } @override void update(void Function(WebhookConfigurationEntityBuilder) updates) { if (updates != null) updates(this); } @override _$WebhookConfigurationEntity build() { _$WebhookConfigurationEntity _$result; try { _$result = _$v ?? new _$WebhookConfigurationEntity._( returnUrl: BuiltValueNullFieldError.checkNotNull( returnUrl, 'WebhookConfigurationEntity', 'returnUrl'), postPurchaseUrl: BuiltValueNullFieldError.checkNotNull( postPurchaseUrl, 'WebhookConfigurationEntity', 'postPurchaseUrl'), postPurchaseRestMethod: BuiltValueNullFieldError.checkNotNull( postPurchaseRestMethod, 'WebhookConfigurationEntity', 'postPurchaseRestMethod'), postPurchaseHeaders: postPurchaseHeaders.build(), postPurchaseBody: BuiltValueNullFieldError.checkNotNull( postPurchaseBody, 'WebhookConfigurationEntity', 'postPurchaseBody')); } catch (_) { String _$failedField; try { _$failedField = 'postPurchaseHeaders'; postPurchaseHeaders.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'WebhookConfigurationEntity', _$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,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