OpenGraphEntity class

OpenGraphEntity represents the OpenGraph protocol Properties:

  • title: Site title, example: "Open Graph protocol"
  • description: Site description, example: "The Open Graph protocol enables any web page to become a rich object in a social graph."
  • locale: Site locale, example: "en_US"
  • type: Site type, example: "website"
  • url: Site url, example: "http://ogp.me/"
  • siteName: Site name, example: "Open Graph protocol"
  • image: Site image, example: "http://ogp.me/logo.png"
Annotations
  • @freezed

Constructors

OpenGraphEntity.new({required String title, required String description, required String locale, required String type, required String url, required String siteName, required String image})
factory
OpenGraphEntity.fromJson(Map<String, dynamic> json)
Create OpenGraphEntity from json
factory

Properties

copyWith → $OpenGraphEntityCopyWith<OpenGraphEntity>
no setterinherited
description String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
image String
no setterinherited
locale String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
siteName String
no setterinherited
title String
no setterinherited
type String
no setterinherited
url String
no setterinherited

Methods

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

Operators

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