build method

  1. @override
_$VKWebAppGetAdsResult build()
override

Builds.

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

Implementation

@override
_$VKWebAppGetAdsResult build() {
  _$VKWebAppGetAdsResult _$result;
  try {
    _$result = _$v ??
        new _$VKWebAppGetAdsResult._(
            title: title,
            urlTypes: urlTypes,
            bannerID: bannerID,
            imageWidth: imageWidth,
            imageHeight: imageHeight,
            imageLink: imageLink,
            trackingLink: trackingLink,
            type: type,
            iconWidth: iconWidth,
            domain: domain,
            ctaText: ctaText,
            advertisingLabel: advertisingLabel,
            iconLink: iconLink,
            statistics: _statistics?.build(),
            openInBrowser: openInBrowser,
            iconHeight: iconHeight,
            directLink: directLink,
            navigationType: navigationType,
            description: description,
            ageRestrictions: ageRestrictions);
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'statistics';
      _statistics?.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'VKWebAppGetAdsResult', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}