Story class

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

Constructors

Story(String id, String url, String content, DateTime createdAt, StoryType mediaType, int commentCount, int likeCount, List<StoryImage>? media, List<StoryLike>? likes, List<StoryComment>? comments, StoryPermission? permission)
Story.fromJson(Map<String, dynamic> json)
factory

Properties

commentCount int
final
comments List<StoryComment>?
Only present in StoryApi.myStory(), always null in StoryApi.myStories().
final
content String
final
createdAt DateTime
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
likeCount int
final
likes List<StoryLike>?
Only present in StoryApi.myStory(), always null in StoryApi.myStories().
final
media List<StoryImage>?
final
mediaType StoryType
final
permission StoryPermission?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
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.
override

Operators

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