JishoResult class

The main API data class, collecting all information of one result in one place.

Constructors

JishoResult({required String slug, required bool? isCommon, List<String> tags = const [], List<String> jlpt = const [], required List<JishoJapaneseWord> japanese, required List<JishoWordSense> senses, required JishoAttribution attribution})
const
JishoResult.fromJson(Map<String, dynamic> json)
factory

Properties

attribution JishoAttribution
Sources.
final
hashCode int
The hash code for this object.
no setterinherited
isCommon bool?
Whether the word is common.
final
japanese List<JishoJapaneseWord>
Japanese versions of the word.
final
jlpt List<String>
Relevant jlpt levels.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senses List<JishoWordSense>
Translations of the word.
final
slug String
The main version of the word
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
tags List<String>
Related tags.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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