Sys class

Sys is the system information that is returned from the Contentful API. It contains the type, linkType and id of the entry. We use it to define if the returned data is of type Entry or Asset or link. And from that you could return the desired widget or data.

Available extensions
Annotations
  • @freezed

Constructors

Sys({ContentfulItemType? type, ContentfulLinkType? linkType, String? id})
Sys is the system information that is returned from the Contentful API. It contains the type, linkType and id of the entry. We use it to define if the returned data is of type Entry or Asset or link. And from that you could return the desired widget or data.
const
factory
Sys.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $SysCopyWith<Sys>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
no setterinherited
idOrNull String?

Available on Sys, provided by the SysX extension

Returns the id of this Sys object or null if it is not set.
no setter
linkType ContentfulLinkType?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ContentfulItemType?
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