mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-06-29 18:01:41 +02:00
Make dbpedia a string
This commit is contained in:
@ -364,7 +364,7 @@ class JishoWordSense {
|
|||||||
class JishoAttribution {
|
class JishoAttribution {
|
||||||
bool jmdict;
|
bool jmdict;
|
||||||
bool jmnedict;
|
bool jmnedict;
|
||||||
bool dbpedia; //This variable might be returned as a link (String). Not sure about the above
|
String dbpedia;
|
||||||
|
|
||||||
JishoAttribution({
|
JishoAttribution({
|
||||||
this.jmdict,
|
this.jmdict,
|
||||||
@ -376,7 +376,7 @@ class JishoAttribution {
|
|||||||
return JishoAttribution(
|
return JishoAttribution(
|
||||||
jmdict: (json['jmdict'].toString() == 'true'),
|
jmdict: (json['jmdict'].toString() == 'true'),
|
||||||
jmnedict: (json['jmnedict'].toString() == 'true'),
|
jmnedict: (json['jmnedict'].toString() == 'true'),
|
||||||
dbpedia: (json['dbpedia'].toString() == 'true')
|
dbpedia: (json['dbpedia'].toString() != 'false') ? json['dbpedia'].toString() : null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user