Content class
- Annotations
-
- @freezed
Constructors
-
Content({@JsonKey(name: 'ID') int? contentID, @JsonKey(name: 'title') String? title, @JsonKey(name: 'date') DateTime? date, @JsonKey(name: 'intro') String? intro, @JsonKey(name: 'authorName') String? authorName, @JsonKey(name: 'author') Author? author, @JsonKey(name: 'itemType') ContentType? contentType, @JsonKey(name: 'timeEstimateSeconds') int? estimate, @JsonKey(name: 'body') String? body, @JsonKey(name: 'heroImageRendition') HeroImage? heroImage, @JsonKey(name: 'likeCount') int? likeCount, @JsonKey(name: 'bookmarkCount') int? bookmarkCount, @JsonKey(name: 'viewCount') int? viewCount, @JsonKey(name: 'documents') List<
Document> ? documents, @JsonKey(name: 'categoryDetails') List<ContentCategory> ? categories, @JsonKey(name: 'tagNames') List<String?> ? tags, @JsonKey(name: 'meta') ContentMetadata? metadata, @JsonKey(name: 'featuredMedia') List<FeaturedMedia?> ? featuredMedia, @JsonKey(name: 'hasLiked', defaultValue: false) bool? hasLiked, @JsonKey(name: 'hasSaved', defaultValue: false) bool? hasSaved, @JsonKey(name: 'galleryImages') List<GalleryImage> ? galleryImages}) -
factory
-
Content.fromJson(Map<
String, dynamic> json) -
factory
- Content.initial()
-
factory
Properties
-
no setterinherited
-
no setterinherited
- body → String?
-
no setterinherited
- bookmarkCount → int?
-
no setterinherited
-
categories
→ List<
ContentCategory> ? -
no setterinherited
- contentID → int?
-
no setterinherited
- contentType → ContentType?
-
no setterinherited
-
copyWith
→ $ContentCopyWith<
Content> -
no setterinherited
- date → DateTime?
-
no setterinherited
-
documents
→ List<
Document> ? -
no setterinherited
- estimate → int?
-
no setterinherited
-
featuredMedia
→ List<
FeaturedMedia?> ? -
no setterinherited
-
galleryImages
→ List<
GalleryImage> ? -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasLiked → bool?
-
no setterinherited
- hasSaved → bool?
-
no setterinherited
- heroImage → HeroImage?
-
no setterinherited
- intro → String?
-
no setterinherited
- likeCount → int?
-
no setterinherited
- metadata → ContentMetadata?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
no setterinherited
-
no setterinherited
- title → String?
-
no setterinherited
- viewCount → int?
-
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