build method

  1. @override
_$DirectionsStep build()
override

Builds.

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

Implementation

@override
_$DirectionsStep build() {
  _$DirectionsStep _$result;
  try {
    _$result = _$v ??
        new _$DirectionsStep._(
            duration: _duration?.build(),
            endLocation: _endLocation?.build(),
            htmlInstructions: htmlInstructions,
            polyline: _polyline?.build(),
            startLocation: _startLocation?.build(),
            travelMode: travelMode,
            distance: _distance?.build(),
            maneuver: maneuver,
            transitDetails: _transitDetails?.build(),
            steps: steps);
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'duration';
      _duration?.build();
      _$failedField = 'endLocation';
      _endLocation?.build();

      _$failedField = 'polyline';
      _polyline?.build();
      _$failedField = 'startLocation';
      _startLocation?.build();

      _$failedField = 'distance';
      _distance?.build();

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