build method

  1. @override
_$Contact build()
override

Builds.

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

Implementation

@override
_$Contact build() {
  _$Contact _$result;
  try {
    _$result = _$v ??
        new _$Contact._(
            givenName: BuiltValueNullFieldError.checkNotNull(
                givenName, 'Contact', 'givenName'),
            familyName: familyName,
            addressLines: _addressLines?.build(),
            city: city,
            countryCode: countryCode,
            email: email,
            phone: phone,
            postalCode: postalCode,
            region: region);
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'addressLines';
      _addressLines?.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'Contact', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}