OpenGraphData class
Open graph data from a website.
An Open Graph data object is a set of key-value pairs that describe a web page. It can be used to describe the content of a page, the author of the page, or the page itself.
- Annotations
-
- @JsonSerializable(createToJson: true)
Constructors
-
OpenGraphData({String? title, String? type, String? url, String? site, String? siteName, String? description, String? determiner, String? locale, List<
OgImage> ? images, List<OgVideo> ? videos, List<OgAudio> ? audios}) -
Builds an OpenGraphData.
const
-
OpenGraphData.fromJson(Map<
String, dynamic> json) -
Create a new instance from a json
factory
Properties
-
audios
→ List<
OgAudio> ? -
List of og audios
final
- description → String?
-
Value of the description OG field.
final
- determiner → String?
-
Value of the determiner OG field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
images
→ List<
OgImage> ? -
List of og images
final
- locale → String?
-
Value of the locale OG field.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- site → String?
-
Value of the site OG field
final
- siteName → String?
-
Value of the site_name OG field.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - title → String?
-
Value of the title OG field.
final
- type → String?
-
Value of the OG field
type
final - url → String?
-
URL to scrape.
final
-
videos
→ List<
OgVideo> ? -
List of og videos
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited