build method

  1. @override
_$DirectionsTransitDetails build()
override

Builds.

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

Implementation

@override
_$DirectionsTransitDetails build() {
  _$DirectionsTransitDetails _$result;
  try {
    _$result = _$v ??
        new _$DirectionsTransitDetails._(
            arrivalStop: _arrivalStop?.build(),
            arrivalTime: _arrivalTime?.build(),
            departureStop: _departureStop?.build(),
            departureTime: _departureTime?.build(),
            headsign: headsign,
            headway: headway,
            line: _line?.build(),
            numStops: numStops,
            tripShortName: tripShortName);
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'arrivalStop';
      _arrivalStop?.build();
      _$failedField = 'arrivalTime';
      _arrivalTime?.build();
      _$failedField = 'departureStop';
      _departureStop?.build();
      _$failedField = 'departureTime';
      _departureTime?.build();

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