PageBlockRelatedArticle class final
Contains information about a related article
Constructors
- PageBlockRelatedArticle({required String url, required String title, required String description, Photo? photo, required String author, required int publishDate})
-
Contains information about a related article
const
-
PageBlockRelatedArticle.fromJson(Map<
String, dynamic> json) -
Parses a PageBlockRelatedArticle from TDLib JSON.
factory
Properties
-
Article author; may be empty
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- description → String
-
Article description; may be empty
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- photo → Photo?
-
Article photo; may be null
final
- publishDate → int
-
Point in time (Unix timestamp) when the article was published; 0 if unknown
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Article title; may be empty
final
- url → String
-
Related article URL
final
Methods
-
copyWith(
{String? url, String? title, String? description, Photo? photo()?, String? author, int? publishDate}) → PageBlockRelatedArticle -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.