build method

  1. @override
_$CloudCustomer build()
override

Builds.

The implementation of this method will be generated for you by the built_value generator.

Implementation

@override
_$CloudCustomer build() {
  _$CloudCustomer _$result;
  try {
    _$result = _$v ??
        new _$CloudCustomer._(
            id: id,
            creatorId: creatorId,
            createAt: createAt,
            email: email,
            name: name,
            numEmployees: numEmployees,
            contactFirstName: contactFirstName,
            contactLastName: contactLastName,
            billingAddress: _billingAddress?.build(),
            companyAddress: _companyAddress?.build(),
            paymentMethod: _paymentMethod?.build());
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'billingAddress';
      _billingAddress?.build();
      _$failedField = 'companyAddress';
      _companyAddress?.build();
      _$failedField = 'paymentMethod';
      _paymentMethod?.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'CloudCustomer', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}