build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$Tender build() {
_$Tender _$result;
try {
_$result = _$v ??
new _$Tender._(
totalMoney: totalMoney.build(),
tipMoney: tipMoney.build(),
type:
BuiltValueNullFieldError.checkNotNull(type, 'Tender', 'type'),
tenderId: tenderId,
createdAt: BuiltValueNullFieldError.checkNotNull(
createdAt, 'Tender', 'createdAt'),
cardDetails: _cardDetails?.build(),
cashDetails: _cashDetails?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'totalMoney';
totalMoney.build();
_$failedField = 'tipMoney';
tipMoney.build();
_$failedField = 'cardDetails';
_cardDetails?.build();
_$failedField = 'cashDetails';
_cashDetails?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Tender', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}