Asset class

Asset is a file that is stored in Contentful. It has the link in the AssetField to the actual file. Also we could find different details in side the AssetField concerning the size and content type of the file.

Annotations
  • @freezed

Constructors

Asset({Metadata? metadata, Sys? sys, AssetField? fields})
Asset is a file that is stored in Contentful. It has the link in the AssetField to the actual file. Also we could find different details in side the AssetField concerning the size and content type of the file.
const
factory
Asset.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $AssetCopyWith<Asset>
no setterinherited
fields AssetField?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
metadata Metadata?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sys Sys?
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