build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$CheckoutParameters build() {
_$CheckoutParameters _$result;
try {
_$result = _$v ??
new _$CheckoutParameters._(
amountMoney: amountMoney.build(),
skipReceipt: skipReceipt,
collectSignature: collectSignature,
allowSplitTender: allowSplitTender,
delayCapture: delayCapture,
note: note,
additionalPaymentTypes: _additionalPaymentTypes?.build(),
tipSettings: _tipSettings?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'amountMoney';
amountMoney.build();
_$failedField = 'additionalPaymentTypes';
_additionalPaymentTypes?.build();
_$failedField = 'tipSettings';
_tipSettings?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'CheckoutParameters', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}