build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$Location build() {
_$Location _$result;
try {
_$result = _$v ??
new _$Location._(
currencyCode: BuiltValueNullFieldError.checkNotNull(
currencyCode, 'Location', 'currencyCode'),
businessName: BuiltValueNullFieldError.checkNotNull(
businessName, 'Location', 'businessName'),
name: BuiltValueNullFieldError.checkNotNull(
name, 'Location', 'name'),
locationId: BuiltValueNullFieldError.checkNotNull(
locationId, 'Location', 'locationId'),
isCardProcessingActivated: BuiltValueNullFieldError.checkNotNull(
isCardProcessingActivated,
'Location',
'isCardProcessingActivated'),
maximumCardPaymentAmountMoney:
maximumCardPaymentAmountMoney.build(),
minimumCardPaymentAmountMoney:
minimumCardPaymentAmountMoney.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'maximumCardPaymentAmountMoney';
maximumCardPaymentAmountMoney.build();
_$failedField = 'minimumCardPaymentAmountMoney';
minimumCardPaymentAmountMoney.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Location', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}