CommentsResponse class
Comments response
The response returned from a call to the Shadertoy comments endpoint When CommentsResponse.error is not null there was an error while fetching the comments When CommentsResponse.error is null the CommentsResponse has a individual list of text, date, user id's and user picture all with the same size. The first index of of the text list corresponds to the first index of the date list and so on. This is a structure used for the intermediary storage of the response. It is transformed in FindCommentsResponse later
- Inheritance
-
- Object
- APIResponse
- CommentsResponse
- Annotations
-
- @JsonSerializable()
Constructors
-
CommentsResponse({List<
String> ? texts, List<String> ? dates, List<String> ? userIds, List<String> ? userPictures, List<String> ? ids, ResponseError? error}) - Builds a CommentsResponse
- CommentsResponse.from(dynamic data)
-
Creates a CommentsResponse from json list or map
factory
- CommentsResponse.fromList(List json)
-
Creates a CommentsResponse from json list
factory
-
CommentsResponse.fromMap(Map<
String, dynamic> json) -
Creates a CommentsResponse from json map
factory
Properties
-
dates
→ List<
String> ? -
The list of date for each comment
final
- error → ResponseError?
-
The error
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
A list with a hidden flag for each comment
final
-
ids
→ List<
String> ? -
A list of the comment ids
final
- ok → bool
-
Returns
true
if there is not errorno setterinherited -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
texts
→ List<
String> ? -
The list of comment texts
final
-
userIds
→ List<
String> ? -
The list of user id's that posted the comment
final
-
userPictures
→ List<
String> ? -
The list of user pictures for each comment
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a json map from a CommentsResponse
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited