KnowledgePanel class

KnowledgePanels are a standardized and generic units of information that the client can display on the product page.

See http://shorturl.at/oxRS9 for details.

Inheritance
Annotations
  • @JsonSerializable.new()

Constructors

KnowledgePanel({TitleElement? titleElement, Level? level, bool? expanded, List<KnowledgePanelElement>? elements, List<String>? topics, Evaluation? evaluation, KnowledgePanelSize? size})
const
KnowledgePanel.fromJson(Map<String, dynamic> json)
factory

Properties

elements → List<KnowledgePanelElement>?
KnowledgePanelElement is a single unit of KnowledgePanel that can be rendered on the client.
final
evaluation → Evaluation?
Evaluation of the panel, depicting whether the content of the panel is good/bad/neutral for the topic to which the panel applies.
final
expanded → bool?
final
hashCode → int
The hash code for this object.
no setterinherited
level → Level?
Level of this KnowledgePanel. Client may choose to display the panel based on the level.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → KnowledgePanelSize?
Size of the KnowledgePanel, if small the client must display the panel in a compact size.
final
titleElement → TitleElement?
Title of the KnowledgePanel.
final
topics → List<String>?
The topics discussed in this knowledge panel, example: 'Environment'.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() → Map<String, String>
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited
toValueString() → String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

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