StorifyMeStory class

Constructors

StorifyMeStory.new({required int id, required List<String> tags, String? handle, String? name, String? url, bool? live, String? originalPoster, String? resizedPoster, String? thumbnail, String? deeplink, DateTime? updatedAt, required int widgetId})
StorifyMeStory.fromJson(Map<String, dynamic> json)
Converts a JSON object to a StoryEntity instance.
factory
StorifyMeStory.init({required int id, required String content, required int widgetId})
Factory constructor to initialize the class with default values.
factory

Properties

final
handle String?
final
hashCode int
The hash code for this object.
no setterinherited
id int
final
live bool?
final
name String?
final
originalPoster String?
final
resizedPoster String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>
final
thumbnail String?
final
updatedAt DateTime?
final
url String?
final
widgetId int
final

Methods

getPreviewImage() String?
Returns the preview image URL by checking available properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJsonString(String? jsonString) StorifyMeStory?
Factory method to parse a JSON string into a StorifyMeStory object.
parseStoriesList(String? jsonString) List<StorifyMeStory>