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: BuiltValueNullFieldError.checkNotNull(
                description, 'PlaceAutocompletePrediction', '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;
}