build method

  1. @override
_$PlaceAutocompleteStructuredFormat build()
override

Builds.

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

Implementation

@override
_$PlaceAutocompleteStructuredFormat build() {
  _$PlaceAutocompleteStructuredFormat _$result;
  try {
    _$result = _$v ??
        new _$PlaceAutocompleteStructuredFormat._(
            mainText: BuiltValueNullFieldError.checkNotNull(
                mainText, 'PlaceAutocompleteStructuredFormat', 'mainText'),
            mainTextMatchedSubstrings: mainTextMatchedSubstrings.build(),
            secondaryText: BuiltValueNullFieldError.checkNotNull(
                secondaryText,
                'PlaceAutocompleteStructuredFormat',
                'secondaryText'),
            secondaryTextMatchedSubstrings:
                _secondaryTextMatchedSubstrings?.build());
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'mainTextMatchedSubstrings';
      mainTextMatchedSubstrings.build();

      _$failedField = 'secondaryTextMatchedSubstrings';
      _secondaryTextMatchedSubstrings?.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'PlaceAutocompleteStructuredFormat', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}