build method

  1. @override
_$PlaceAutocompletePrediction build()
override

Builds.

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

Implementation

@override
_$PlaceAutocompletePrediction build() {
  _$PlaceAutocompletePrediction _$result;
  try {
    _$result = _$v ??
        new _$PlaceAutocompletePrediction._(
            description: description,
            matchedSubstrings: _matchedSubstrings?.build(),
            structuredFormatting: _structuredFormatting?.build(),
            terms: _terms?.build(),
            placeId: placeId,
            reference: reference,
            types: _types?.build());
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'matchedSubstrings';
      _matchedSubstrings?.build();
      _$failedField = 'structuredFormatting';
      _structuredFormatting?.build();
      _$failedField = 'terms';
      _terms?.build();

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