Article class
Constructors
-
Article.new({@JsonKey(name: 'articleId', defaultValue: '') required String articleId, @JsonKey(name: 'title', defaultValue: '') required String title, @JsonKey(name: 'description', required: true) required String description, String? body, @JsonKey(name: 'icon') required FBIcon? icon, String? parentId, @JsonKey(name: 'helpCenterId', required: true) required String helpCenterId, @JsonKey(name: 'organizationId', required: true) required String organizationId, @JsonKey(name: 'state', defaultValue: 'live') required String state, @JsonKey(name: 'locale', required: true) required String locale, DateTime? createdAt, DateTime? updatedAt, @JsonKey(name: 'slug', required: true) required String slug, @JsonKey(name: 'featurebaseUrl', required: true) required String featurebaseUrl, String? externalUrl, @JsonKey(name: 'isDraftDiffersFromLive', defaultValue: false) required bool isDraftDiffersFromLive, @JsonKey(name: 'isPublished', defaultValue: true) required bool isPublished, @JsonKey(name: 'author') Author? author, @JsonKey(name: 'availableLocales', required: true) required List<String> availableLocales, @JsonKey(name: 'publishedLocales', required: true) 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