build method

  1. @override
_$DistanceMatrixResponse build()
override

Builds.

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

Implementation

@override
_$DistanceMatrixResponse build() {
  _$DistanceMatrixResponse _$result;
  try {
    _$result = _$v ??
        new _$DistanceMatrixResponse._(
            originAddresses: originAddresses.build(),
            destinationAddresses: destinationAddresses.build(),
            rows: rows.build(),
            status: BuiltValueNullFieldError.checkNotNull(
                status, 'DistanceMatrixResponse', 'status'));
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'originAddresses';
      originAddresses.build();
      _$failedField = 'destinationAddresses';
      destinationAddresses.build();
      _$failedField = 'rows';
      rows.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'DistanceMatrixResponse', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}