Article class
Constructors
-
Article({required String articleId, required String title, required String description, String? body, required FBIcon? icon, String? parentId, required String helpCenterId, required String organizationId, required String state, required String locale, DateTime? createdAt, DateTime? updatedAt, required String slug, required String featurebaseUrl, String? externalUrl, required bool isDraftDiffersFromLive, required bool isPublished, Author? author, required List<String> availableLocales, required List<String> publishedLocales})
-
const
factory
-
Article.fromJson(Map<String, Object?> json)
-
factory
Properties
-
articleId
→ String
-
The article's unique ID.
no setterinherited
-
author
→ Author?
-
Author of the article (will be null if hideAuthorInfo is true)
no setterinherited
-
availableLocales
→ List<String>
-
An array of available locales for the article.
no setterinherited
-
body
→ String?
-
The HTML content of the article.
no setterinherited
-
copyWith
→ $ArticleCopyWith<Article>
-
Create a copy of Article
with the given fields replaced by the non-null parameter values.
no setterinherited
-
createdAt
→ DateTime?
-
The date when the article was created (will be null if hideDateInfo is true)
no setterinherited
-
description
→ String
-
A brief description of the article.
no setterinherited
-
externalUrl
→ String?
-
The external URL for the article.
no setterinherited
-
featurebaseUrl
→ String
-
The Featurebase URL for the article.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
helpCenterId
→ String
-
The ID of the help center this article belongs to.
no setterinherited
-
icon
→ FBIcon?
-
The icon of the article.
no setterinherited
-
isDraftDiffersFromLive
→ bool
-
Indicates whether the draft version differs from the live published version.
no setterinherited
-
isPublished
→ bool
-
Indicates whether the article is published.
no setterinherited
-
locale
→ String
-
The locale of the article.
no setterinherited
-
organizationId
→ String
-
The ID of the organization that the article belongs to.
no setterinherited
-
parentId
→ String?
-
The ID of the parent collection, if any.
no setterinherited
-
publishedLocales
→ List<String>
-
An array of locales in which the article is published.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
slug
→ String
-
The URL-friendly slug of the article.
no setterinherited
-
state
→ String
-
The state of the article, either "live" or "draft".
no setterinherited
-
title
→ String
-
The title of the article.
no setterinherited
-
updatedAt
→ DateTime?
-
The date when the article was last updated (will be null if hideDateInfo is true)
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serializes this Article to a JSON map.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited