ContentfulDeliveryDataModel<T> class

ContentfulDeliveryDataModel is the base model for the contentful delivery API returned from the API. It contains the sys information, the total number of items, the skip and limit values. It also contains the items and includes that are returned from the API. The items are the entries that are returned from the API. The includes are the assets and linked entries that are returned from the API.

Annotations
  • @Freezed(genericArgumentFactories: true)

Constructors

ContentfulDeliveryDataModel({@Default(0) int total, Sys? sys, int? skip, int? limit, @Default([]) List<T> items, Includes? includes})
ContentfulDeliveryDataModel is the base model for the contentful delivery API returned from the API. It contains the sys information, the total number of items, the skip and limit values. It also contains the items and includes that are returned from the API. The items are the entries that are returned from the API. The includes are the assets and linked entries that are returned from the API.
factory
ContentfulDeliveryDataModel.fromJson(Map<String, dynamic> json, T fromJsonT(Object?))
ContentfulDeliveryDataModel.fromJson is used to convert the json that is received from the Contentful API into a ContentfulDeliveryDataModel object.
factory

Properties

copyWith → $ContentfulDeliveryDataModelCopyWith<T, ContentfulDeliveryDataModel<T>>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
includes Includes?
no setterinherited
items List<T>
no setterinherited
limit int?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skip int?
no setterinherited
sys Sys?
no setterinherited
total int
no setterinherited

Methods

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

Operators

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