FeedTemplate class

Default template for feed type.

Inheritance
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true, includeIfNull: false)

Constructors

FeedTemplate(Content content, {ItemContent? itemContent, Social? social, List<Button>? buttons, String? buttonTitle, String objectType = "feed"})
FeedTemplate.fromJson(Map<String, dynamic> json)
factory

Properties

buttons List<Button>?
List of buttons, up to 2. Use when you want to change the title and link of the button, and when you want to insert two buttons.
final
buttonTitle String?
final
content Content
Main content information of the message.
final
hashCode int
The hash code for this object.
no setterinherited
itemContent ItemContent?
Contents to be included in the item area. Please refer to ItemContent.
final
objectType String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
social Social?
Social information about the contents.
final

Methods

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

Operators

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