LinkInfo class

Response from StoryApi.scrapLink(), which is used as an input to StoryApi.postLink().

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true, includeIfNull: false)

Constructors

LinkInfo(String? url, String? requestedUrl, String? host, String? title, List<String>? images, String? description, String? section, String? type)
LinkInfo.fromJson(Map<String, dynamic> json)
factory

Properties

description String?
Webpage description.
final
hashCode int
The hash code for this object.
no setterinherited
host String?
Host of the requested url.
final
images List<String>?
image urls of . Maximum of 3.
final
requestedUrl String?
Original url.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
section String?
Section information of the web page.
final
title String?
Webpage title.
final
type String?
Content type of the web page, such as website, video, music, etc.
final
url String?
Scraped url, possibly shortened.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited