1
0
mirror of https://github.com/h7x4/unofficial_jisho_api_dart.git synced 2025-01-22 01:14:45 +01:00

Make dbpedia a string

This commit is contained in:
Oystein Kristoffer Tveit 2020-06-24 16:52:32 +02:00
parent 1dc3a388d4
commit ccc2726e54

View File

@ -364,7 +364,7 @@ class JishoWordSense {
class JishoAttribution {
bool jmdict;
bool jmnedict;
bool dbpedia; //This variable might be returned as a link (String). Not sure about the above
String dbpedia;
JishoAttribution({
this.jmdict,
@ -376,7 +376,7 @@ class JishoAttribution {
return JishoAttribution(
jmdict: (json['jmdict'].toString() == 'true'),
jmnedict: (json['jmnedict'].toString() == 'true'),
dbpedia: (json['dbpedia'].toString() == 'true')
dbpedia: (json['dbpedia'].toString() != 'false') ? json['dbpedia'].toString() : null
);
}