TranslationVote class

Constructors

TranslationVote({required String uuid, required TranslationVoteType type, required String translationUUID, required String userUUID})
const
TranslationVote.fromJson(String source)
factory
TranslationVote.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isDownVote bool
no setter
isUpVote bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translationUUID String
final
type TranslationVoteType
final
userUUID String
final
uuid String
final

Methods

copyWith({String? uuid, TranslationVoteType? type, String? translationUUID, String? userUUID}) TranslationVote
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

getAllByTranslation(Translation translation, {int limit = 50, int skip = 0}) Future<ListModelResponse<TranslationVote>>
getByUUID(String uuid) Future<TranslationVote>