StoryRatingComponent class Null safety

This data class represents the Rating component.

Implemented types

Constructors

StoryRatingComponent({required String type, String? customPayload, required int rating, required String emojiCode})
StoryRatingComponent.fromJson(Map<String, dynamic> json)
factory

Properties

customPayload String?
customPayload Custom payload for this rating if exists
final
emojiCode String
emojiCode Emoji code as the thumb emoji
final
hashCode int
The hash code for this object. [...]
read-only, inherited
rating int
rating Rating value which user rated in the component
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
type Type of the interactive component
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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