CommentsResponse class Null safety

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
Mixed in types
Annotations

Constructors

CommentsResponse({List<String>? texts, List<String>? dates, List<String>? userIds, List<String>? userPictures, List<String>? ids, List<int>? hidden, 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
@JsonKey(name: 'date'), final
error ResponseError?
The error
@JsonKey(name: 'Error'), @ResponseErrorConverter(), final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hidden List<int>?
A list with a hidden flag for each comment
@JsonKey(name: 'hidden'), final
ids List<String>?
A list of the comment ids
@JsonKey(name: 'id'), final
ok bool
Returns true if there is not error [...]
read-only, inherited
props List
The List of props (properties) which will be used to determine whether two Equatables are equal.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited
texts List<String>?
The list of comment texts
@JsonKey(name: 'text'), final
userIds List<String>?
The list of user id's that posted the comment
@JsonKey(name: 'username'), final
userPictures List<String>?
The list of user pictures for each comment
@JsonKey(name: 'userpicture'), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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