TweetWithheld constructor

const TweetWithheld({
  1. @JsonKey(name: 'copyright') required bool dueToCopyright,
  2. @JsonKey(name: 'country_codes') required List<Country> countries,
})

Implementation

const factory TweetWithheld({
  /// Indicates if the content is being withheld for on the basis of
  /// copyright infringement.
  @JsonKey(name: 'copyright') required bool dueToCopyright,

  /// Provides a list of countries where this content is not available.
  @JsonKey(name: 'country_codes') required List<Country> countries,
}) = _TweetWithheld;