OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.language.v1; | 3 library googleapis.language.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 AnalyzeEntitiesRequest.fromJson(core.Map _json) { | 234 AnalyzeEntitiesRequest.fromJson(core.Map _json) { |
235 if (_json.containsKey("document")) { | 235 if (_json.containsKey("document")) { |
236 document = new Document.fromJson(_json["document"]); | 236 document = new Document.fromJson(_json["document"]); |
237 } | 237 } |
238 if (_json.containsKey("encodingType")) { | 238 if (_json.containsKey("encodingType")) { |
239 encodingType = _json["encodingType"]; | 239 encodingType = _json["encodingType"]; |
240 } | 240 } |
241 } | 241 } |
242 | 242 |
243 core.Map toJson() { | 243 core.Map<core.String, core.Object> toJson() { |
244 var _json = new core.Map(); | 244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
245 if (document != null) { | 245 if (document != null) { |
246 _json["document"] = (document).toJson(); | 246 _json["document"] = (document).toJson(); |
247 } | 247 } |
248 if (encodingType != null) { | 248 if (encodingType != null) { |
249 _json["encodingType"] = encodingType; | 249 _json["encodingType"] = encodingType; |
250 } | 250 } |
251 return _json; | 251 return _json; |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
(...skipping 12 matching lines...) Expand all Loading... |
267 | 267 |
268 AnalyzeEntitiesResponse.fromJson(core.Map _json) { | 268 AnalyzeEntitiesResponse.fromJson(core.Map _json) { |
269 if (_json.containsKey("entities")) { | 269 if (_json.containsKey("entities")) { |
270 entities = _json["entities"].map((value) => new Entity.fromJson(value)).to
List(); | 270 entities = _json["entities"].map((value) => new Entity.fromJson(value)).to
List(); |
271 } | 271 } |
272 if (_json.containsKey("language")) { | 272 if (_json.containsKey("language")) { |
273 language = _json["language"]; | 273 language = _json["language"]; |
274 } | 274 } |
275 } | 275 } |
276 | 276 |
277 core.Map toJson() { | 277 core.Map<core.String, core.Object> toJson() { |
278 var _json = new core.Map(); | 278 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
279 if (entities != null) { | 279 if (entities != null) { |
280 _json["entities"] = entities.map((value) => (value).toJson()).toList(); | 280 _json["entities"] = entities.map((value) => (value).toJson()).toList(); |
281 } | 281 } |
282 if (language != null) { | 282 if (language != null) { |
283 _json["language"] = language; | 283 _json["language"] = language; |
284 } | 284 } |
285 return _json; | 285 return _json; |
286 } | 286 } |
287 } | 287 } |
288 | 288 |
(...skipping 26 matching lines...) Expand all Loading... |
315 | 315 |
316 AnalyzeSentimentRequest.fromJson(core.Map _json) { | 316 AnalyzeSentimentRequest.fromJson(core.Map _json) { |
317 if (_json.containsKey("document")) { | 317 if (_json.containsKey("document")) { |
318 document = new Document.fromJson(_json["document"]); | 318 document = new Document.fromJson(_json["document"]); |
319 } | 319 } |
320 if (_json.containsKey("encodingType")) { | 320 if (_json.containsKey("encodingType")) { |
321 encodingType = _json["encodingType"]; | 321 encodingType = _json["encodingType"]; |
322 } | 322 } |
323 } | 323 } |
324 | 324 |
325 core.Map toJson() { | 325 core.Map<core.String, core.Object> toJson() { |
326 var _json = new core.Map(); | 326 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
327 if (document != null) { | 327 if (document != null) { |
328 _json["document"] = (document).toJson(); | 328 _json["document"] = (document).toJson(); |
329 } | 329 } |
330 if (encodingType != null) { | 330 if (encodingType != null) { |
331 _json["encodingType"] = encodingType; | 331 _json["encodingType"] = encodingType; |
332 } | 332 } |
333 return _json; | 333 return _json; |
334 } | 334 } |
335 } | 335 } |
336 | 336 |
(...skipping 17 matching lines...) Expand all Loading... |
354 documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]); | 354 documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]); |
355 } | 355 } |
356 if (_json.containsKey("language")) { | 356 if (_json.containsKey("language")) { |
357 language = _json["language"]; | 357 language = _json["language"]; |
358 } | 358 } |
359 if (_json.containsKey("sentences")) { | 359 if (_json.containsKey("sentences")) { |
360 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); | 360 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 core.Map toJson() { | 364 core.Map<core.String, core.Object> toJson() { |
365 var _json = new core.Map(); | 365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
366 if (documentSentiment != null) { | 366 if (documentSentiment != null) { |
367 _json["documentSentiment"] = (documentSentiment).toJson(); | 367 _json["documentSentiment"] = (documentSentiment).toJson(); |
368 } | 368 } |
369 if (language != null) { | 369 if (language != null) { |
370 _json["language"] = language; | 370 _json["language"] = language; |
371 } | 371 } |
372 if (sentences != null) { | 372 if (sentences != null) { |
373 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); | 373 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); |
374 } | 374 } |
375 return _json; | 375 return _json; |
(...skipping 29 matching lines...) Expand all Loading... |
405 | 405 |
406 AnalyzeSyntaxRequest.fromJson(core.Map _json) { | 406 AnalyzeSyntaxRequest.fromJson(core.Map _json) { |
407 if (_json.containsKey("document")) { | 407 if (_json.containsKey("document")) { |
408 document = new Document.fromJson(_json["document"]); | 408 document = new Document.fromJson(_json["document"]); |
409 } | 409 } |
410 if (_json.containsKey("encodingType")) { | 410 if (_json.containsKey("encodingType")) { |
411 encodingType = _json["encodingType"]; | 411 encodingType = _json["encodingType"]; |
412 } | 412 } |
413 } | 413 } |
414 | 414 |
415 core.Map toJson() { | 415 core.Map<core.String, core.Object> toJson() { |
416 var _json = new core.Map(); | 416 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
417 if (document != null) { | 417 if (document != null) { |
418 _json["document"] = (document).toJson(); | 418 _json["document"] = (document).toJson(); |
419 } | 419 } |
420 if (encodingType != null) { | 420 if (encodingType != null) { |
421 _json["encodingType"] = encodingType; | 421 _json["encodingType"] = encodingType; |
422 } | 422 } |
423 return _json; | 423 return _json; |
424 } | 424 } |
425 } | 425 } |
426 | 426 |
(...skipping 17 matching lines...) Expand all Loading... |
444 language = _json["language"]; | 444 language = _json["language"]; |
445 } | 445 } |
446 if (_json.containsKey("sentences")) { | 446 if (_json.containsKey("sentences")) { |
447 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); | 447 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); |
448 } | 448 } |
449 if (_json.containsKey("tokens")) { | 449 if (_json.containsKey("tokens")) { |
450 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(
); | 450 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(
); |
451 } | 451 } |
452 } | 452 } |
453 | 453 |
454 core.Map toJson() { | 454 core.Map<core.String, core.Object> toJson() { |
455 var _json = new core.Map(); | 455 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
456 if (language != null) { | 456 if (language != null) { |
457 _json["language"] = language; | 457 _json["language"] = language; |
458 } | 458 } |
459 if (sentences != null) { | 459 if (sentences != null) { |
460 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); | 460 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); |
461 } | 461 } |
462 if (tokens != null) { | 462 if (tokens != null) { |
463 _json["tokens"] = tokens.map((value) => (value).toJson()).toList(); | 463 _json["tokens"] = tokens.map((value) => (value).toJson()).toList(); |
464 } | 464 } |
465 return _json; | 465 return _json; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 document = new Document.fromJson(_json["document"]); | 503 document = new Document.fromJson(_json["document"]); |
504 } | 504 } |
505 if (_json.containsKey("encodingType")) { | 505 if (_json.containsKey("encodingType")) { |
506 encodingType = _json["encodingType"]; | 506 encodingType = _json["encodingType"]; |
507 } | 507 } |
508 if (_json.containsKey("features")) { | 508 if (_json.containsKey("features")) { |
509 features = new Features.fromJson(_json["features"]); | 509 features = new Features.fromJson(_json["features"]); |
510 } | 510 } |
511 } | 511 } |
512 | 512 |
513 core.Map toJson() { | 513 core.Map<core.String, core.Object> toJson() { |
514 var _json = new core.Map(); | 514 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
515 if (document != null) { | 515 if (document != null) { |
516 _json["document"] = (document).toJson(); | 516 _json["document"] = (document).toJson(); |
517 } | 517 } |
518 if (encodingType != null) { | 518 if (encodingType != null) { |
519 _json["encodingType"] = encodingType; | 519 _json["encodingType"] = encodingType; |
520 } | 520 } |
521 if (features != null) { | 521 if (features != null) { |
522 _json["features"] = (features).toJson(); | 522 _json["features"] = (features).toJson(); |
523 } | 523 } |
524 return _json; | 524 return _json; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 language = _json["language"]; | 569 language = _json["language"]; |
570 } | 570 } |
571 if (_json.containsKey("sentences")) { | 571 if (_json.containsKey("sentences")) { |
572 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); | 572 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); |
573 } | 573 } |
574 if (_json.containsKey("tokens")) { | 574 if (_json.containsKey("tokens")) { |
575 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(
); | 575 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(
); |
576 } | 576 } |
577 } | 577 } |
578 | 578 |
579 core.Map toJson() { | 579 core.Map<core.String, core.Object> toJson() { |
580 var _json = new core.Map(); | 580 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
581 if (documentSentiment != null) { | 581 if (documentSentiment != null) { |
582 _json["documentSentiment"] = (documentSentiment).toJson(); | 582 _json["documentSentiment"] = (documentSentiment).toJson(); |
583 } | 583 } |
584 if (entities != null) { | 584 if (entities != null) { |
585 _json["entities"] = entities.map((value) => (value).toJson()).toList(); | 585 _json["entities"] = entities.map((value) => (value).toJson()).toList(); |
586 } | 586 } |
587 if (language != null) { | 587 if (language != null) { |
588 _json["language"] = language; | 588 _json["language"] = language; |
589 } | 589 } |
590 if (sentences != null) { | 590 if (sentences != null) { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 | 699 |
700 DependencyEdge.fromJson(core.Map _json) { | 700 DependencyEdge.fromJson(core.Map _json) { |
701 if (_json.containsKey("headTokenIndex")) { | 701 if (_json.containsKey("headTokenIndex")) { |
702 headTokenIndex = _json["headTokenIndex"]; | 702 headTokenIndex = _json["headTokenIndex"]; |
703 } | 703 } |
704 if (_json.containsKey("label")) { | 704 if (_json.containsKey("label")) { |
705 label = _json["label"]; | 705 label = _json["label"]; |
706 } | 706 } |
707 } | 707 } |
708 | 708 |
709 core.Map toJson() { | 709 core.Map<core.String, core.Object> toJson() { |
710 var _json = new core.Map(); | 710 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
711 if (headTokenIndex != null) { | 711 if (headTokenIndex != null) { |
712 _json["headTokenIndex"] = headTokenIndex; | 712 _json["headTokenIndex"] = headTokenIndex; |
713 } | 713 } |
714 if (label != null) { | 714 if (label != null) { |
715 _json["label"] = label; | 715 _json["label"] = label; |
716 } | 716 } |
717 return _json; | 717 return _json; |
718 } | 718 } |
719 } | 719 } |
720 | 720 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 gcsContentUri = _json["gcsContentUri"]; | 764 gcsContentUri = _json["gcsContentUri"]; |
765 } | 765 } |
766 if (_json.containsKey("language")) { | 766 if (_json.containsKey("language")) { |
767 language = _json["language"]; | 767 language = _json["language"]; |
768 } | 768 } |
769 if (_json.containsKey("type")) { | 769 if (_json.containsKey("type")) { |
770 type = _json["type"]; | 770 type = _json["type"]; |
771 } | 771 } |
772 } | 772 } |
773 | 773 |
774 core.Map toJson() { | 774 core.Map<core.String, core.Object> toJson() { |
775 var _json = new core.Map(); | 775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
776 if (content != null) { | 776 if (content != null) { |
777 _json["content"] = content; | 777 _json["content"] = content; |
778 } | 778 } |
779 if (gcsContentUri != null) { | 779 if (gcsContentUri != null) { |
780 _json["gcsContentUri"] = gcsContentUri; | 780 _json["gcsContentUri"] = gcsContentUri; |
781 } | 781 } |
782 if (language != null) { | 782 if (language != null) { |
783 _json["language"] = language; | 783 _json["language"] = language; |
784 } | 784 } |
785 if (type != null) { | 785 if (type != null) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 name = _json["name"]; | 845 name = _json["name"]; |
846 } | 846 } |
847 if (_json.containsKey("salience")) { | 847 if (_json.containsKey("salience")) { |
848 salience = _json["salience"]; | 848 salience = _json["salience"]; |
849 } | 849 } |
850 if (_json.containsKey("type")) { | 850 if (_json.containsKey("type")) { |
851 type = _json["type"]; | 851 type = _json["type"]; |
852 } | 852 } |
853 } | 853 } |
854 | 854 |
855 core.Map toJson() { | 855 core.Map<core.String, core.Object> toJson() { |
856 var _json = new core.Map(); | 856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
857 if (mentions != null) { | 857 if (mentions != null) { |
858 _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); | 858 _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); |
859 } | 859 } |
860 if (metadata != null) { | 860 if (metadata != null) { |
861 _json["metadata"] = metadata; | 861 _json["metadata"] = metadata; |
862 } | 862 } |
863 if (name != null) { | 863 if (name != null) { |
864 _json["name"] = name; | 864 _json["name"] = name; |
865 } | 865 } |
866 if (salience != null) { | 866 if (salience != null) { |
(...skipping 26 matching lines...) Expand all Loading... |
893 | 893 |
894 EntityMention.fromJson(core.Map _json) { | 894 EntityMention.fromJson(core.Map _json) { |
895 if (_json.containsKey("text")) { | 895 if (_json.containsKey("text")) { |
896 text = new TextSpan.fromJson(_json["text"]); | 896 text = new TextSpan.fromJson(_json["text"]); |
897 } | 897 } |
898 if (_json.containsKey("type")) { | 898 if (_json.containsKey("type")) { |
899 type = _json["type"]; | 899 type = _json["type"]; |
900 } | 900 } |
901 } | 901 } |
902 | 902 |
903 core.Map toJson() { | 903 core.Map<core.String, core.Object> toJson() { |
904 var _json = new core.Map(); | 904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
905 if (text != null) { | 905 if (text != null) { |
906 _json["text"] = (text).toJson(); | 906 _json["text"] = (text).toJson(); |
907 } | 907 } |
908 if (type != null) { | 908 if (type != null) { |
909 _json["type"] = type; | 909 _json["type"] = type; |
910 } | 910 } |
911 return _json; | 911 return _json; |
912 } | 912 } |
913 } | 913 } |
914 | 914 |
(...skipping 16 matching lines...) Expand all Loading... |
931 extractDocumentSentiment = _json["extractDocumentSentiment"]; | 931 extractDocumentSentiment = _json["extractDocumentSentiment"]; |
932 } | 932 } |
933 if (_json.containsKey("extractEntities")) { | 933 if (_json.containsKey("extractEntities")) { |
934 extractEntities = _json["extractEntities"]; | 934 extractEntities = _json["extractEntities"]; |
935 } | 935 } |
936 if (_json.containsKey("extractSyntax")) { | 936 if (_json.containsKey("extractSyntax")) { |
937 extractSyntax = _json["extractSyntax"]; | 937 extractSyntax = _json["extractSyntax"]; |
938 } | 938 } |
939 } | 939 } |
940 | 940 |
941 core.Map toJson() { | 941 core.Map<core.String, core.Object> toJson() { |
942 var _json = new core.Map(); | 942 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
943 if (extractDocumentSentiment != null) { | 943 if (extractDocumentSentiment != null) { |
944 _json["extractDocumentSentiment"] = extractDocumentSentiment; | 944 _json["extractDocumentSentiment"] = extractDocumentSentiment; |
945 } | 945 } |
946 if (extractEntities != null) { | 946 if (extractEntities != null) { |
947 _json["extractEntities"] = extractEntities; | 947 _json["extractEntities"] = extractEntities; |
948 } | 948 } |
949 if (extractSyntax != null) { | 949 if (extractSyntax != null) { |
950 _json["extractSyntax"] = extractSyntax; | 950 _json["extractSyntax"] = extractSyntax; |
951 } | 951 } |
952 return _json; | 952 return _json; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 tag = _json["tag"]; | 1148 tag = _json["tag"]; |
1149 } | 1149 } |
1150 if (_json.containsKey("tense")) { | 1150 if (_json.containsKey("tense")) { |
1151 tense = _json["tense"]; | 1151 tense = _json["tense"]; |
1152 } | 1152 } |
1153 if (_json.containsKey("voice")) { | 1153 if (_json.containsKey("voice")) { |
1154 voice = _json["voice"]; | 1154 voice = _json["voice"]; |
1155 } | 1155 } |
1156 } | 1156 } |
1157 | 1157 |
1158 core.Map toJson() { | 1158 core.Map<core.String, core.Object> toJson() { |
1159 var _json = new core.Map(); | 1159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1160 if (aspect != null) { | 1160 if (aspect != null) { |
1161 _json["aspect"] = aspect; | 1161 _json["aspect"] = aspect; |
1162 } | 1162 } |
1163 if (case_ != null) { | 1163 if (case_ != null) { |
1164 _json["case"] = case_; | 1164 _json["case"] = case_; |
1165 } | 1165 } |
1166 if (form != null) { | 1166 if (form != null) { |
1167 _json["form"] = form; | 1167 _json["form"] = form; |
1168 } | 1168 } |
1169 if (gender != null) { | 1169 if (gender != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 | 1212 |
1213 Sentence.fromJson(core.Map _json) { | 1213 Sentence.fromJson(core.Map _json) { |
1214 if (_json.containsKey("sentiment")) { | 1214 if (_json.containsKey("sentiment")) { |
1215 sentiment = new Sentiment.fromJson(_json["sentiment"]); | 1215 sentiment = new Sentiment.fromJson(_json["sentiment"]); |
1216 } | 1216 } |
1217 if (_json.containsKey("text")) { | 1217 if (_json.containsKey("text")) { |
1218 text = new TextSpan.fromJson(_json["text"]); | 1218 text = new TextSpan.fromJson(_json["text"]); |
1219 } | 1219 } |
1220 } | 1220 } |
1221 | 1221 |
1222 core.Map toJson() { | 1222 core.Map<core.String, core.Object> toJson() { |
1223 var _json = new core.Map(); | 1223 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1224 if (sentiment != null) { | 1224 if (sentiment != null) { |
1225 _json["sentiment"] = (sentiment).toJson(); | 1225 _json["sentiment"] = (sentiment).toJson(); |
1226 } | 1226 } |
1227 if (text != null) { | 1227 if (text != null) { |
1228 _json["text"] = (text).toJson(); | 1228 _json["text"] = (text).toJson(); |
1229 } | 1229 } |
1230 return _json; | 1230 return _json; |
1231 } | 1231 } |
1232 } | 1232 } |
1233 | 1233 |
(...skipping 18 matching lines...) Expand all Loading... |
1252 | 1252 |
1253 Sentiment.fromJson(core.Map _json) { | 1253 Sentiment.fromJson(core.Map _json) { |
1254 if (_json.containsKey("magnitude")) { | 1254 if (_json.containsKey("magnitude")) { |
1255 magnitude = _json["magnitude"]; | 1255 magnitude = _json["magnitude"]; |
1256 } | 1256 } |
1257 if (_json.containsKey("score")) { | 1257 if (_json.containsKey("score")) { |
1258 score = _json["score"]; | 1258 score = _json["score"]; |
1259 } | 1259 } |
1260 } | 1260 } |
1261 | 1261 |
1262 core.Map toJson() { | 1262 core.Map<core.String, core.Object> toJson() { |
1263 var _json = new core.Map(); | 1263 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1264 if (magnitude != null) { | 1264 if (magnitude != null) { |
1265 _json["magnitude"] = magnitude; | 1265 _json["magnitude"] = magnitude; |
1266 } | 1266 } |
1267 if (score != null) { | 1267 if (score != null) { |
1268 _json["score"] = score; | 1268 _json["score"] = score; |
1269 } | 1269 } |
1270 return _json; | 1270 return _json; |
1271 } | 1271 } |
1272 } | 1272 } |
1273 | 1273 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 code = _json["code"]; | 1352 code = _json["code"]; |
1353 } | 1353 } |
1354 if (_json.containsKey("details")) { | 1354 if (_json.containsKey("details")) { |
1355 details = _json["details"]; | 1355 details = _json["details"]; |
1356 } | 1356 } |
1357 if (_json.containsKey("message")) { | 1357 if (_json.containsKey("message")) { |
1358 message = _json["message"]; | 1358 message = _json["message"]; |
1359 } | 1359 } |
1360 } | 1360 } |
1361 | 1361 |
1362 core.Map toJson() { | 1362 core.Map<core.String, core.Object> toJson() { |
1363 var _json = new core.Map(); | 1363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1364 if (code != null) { | 1364 if (code != null) { |
1365 _json["code"] = code; | 1365 _json["code"] = code; |
1366 } | 1366 } |
1367 if (details != null) { | 1367 if (details != null) { |
1368 _json["details"] = details; | 1368 _json["details"] = details; |
1369 } | 1369 } |
1370 if (message != null) { | 1370 if (message != null) { |
1371 _json["message"] = message; | 1371 _json["message"] = message; |
1372 } | 1372 } |
1373 return _json; | 1373 return _json; |
(...skipping 14 matching lines...) Expand all Loading... |
1388 | 1388 |
1389 TextSpan.fromJson(core.Map _json) { | 1389 TextSpan.fromJson(core.Map _json) { |
1390 if (_json.containsKey("beginOffset")) { | 1390 if (_json.containsKey("beginOffset")) { |
1391 beginOffset = _json["beginOffset"]; | 1391 beginOffset = _json["beginOffset"]; |
1392 } | 1392 } |
1393 if (_json.containsKey("content")) { | 1393 if (_json.containsKey("content")) { |
1394 content = _json["content"]; | 1394 content = _json["content"]; |
1395 } | 1395 } |
1396 } | 1396 } |
1397 | 1397 |
1398 core.Map toJson() { | 1398 core.Map<core.String, core.Object> toJson() { |
1399 var _json = new core.Map(); | 1399 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1400 if (beginOffset != null) { | 1400 if (beginOffset != null) { |
1401 _json["beginOffset"] = beginOffset; | 1401 _json["beginOffset"] = beginOffset; |
1402 } | 1402 } |
1403 if (content != null) { | 1403 if (content != null) { |
1404 _json["content"] = content; | 1404 _json["content"] = content; |
1405 } | 1405 } |
1406 return _json; | 1406 return _json; |
1407 } | 1407 } |
1408 } | 1408 } |
1409 | 1409 |
(...skipping 20 matching lines...) Expand all Loading... |
1430 lemma = _json["lemma"]; | 1430 lemma = _json["lemma"]; |
1431 } | 1431 } |
1432 if (_json.containsKey("partOfSpeech")) { | 1432 if (_json.containsKey("partOfSpeech")) { |
1433 partOfSpeech = new PartOfSpeech.fromJson(_json["partOfSpeech"]); | 1433 partOfSpeech = new PartOfSpeech.fromJson(_json["partOfSpeech"]); |
1434 } | 1434 } |
1435 if (_json.containsKey("text")) { | 1435 if (_json.containsKey("text")) { |
1436 text = new TextSpan.fromJson(_json["text"]); | 1436 text = new TextSpan.fromJson(_json["text"]); |
1437 } | 1437 } |
1438 } | 1438 } |
1439 | 1439 |
1440 core.Map toJson() { | 1440 core.Map<core.String, core.Object> toJson() { |
1441 var _json = new core.Map(); | 1441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1442 if (dependencyEdge != null) { | 1442 if (dependencyEdge != null) { |
1443 _json["dependencyEdge"] = (dependencyEdge).toJson(); | 1443 _json["dependencyEdge"] = (dependencyEdge).toJson(); |
1444 } | 1444 } |
1445 if (lemma != null) { | 1445 if (lemma != null) { |
1446 _json["lemma"] = lemma; | 1446 _json["lemma"] = lemma; |
1447 } | 1447 } |
1448 if (partOfSpeech != null) { | 1448 if (partOfSpeech != null) { |
1449 _json["partOfSpeech"] = (partOfSpeech).toJson(); | 1449 _json["partOfSpeech"] = (partOfSpeech).toJson(); |
1450 } | 1450 } |
1451 if (text != null) { | 1451 if (text != null) { |
1452 _json["text"] = (text).toJson(); | 1452 _json["text"] = (text).toJson(); |
1453 } | 1453 } |
1454 return _json; | 1454 return _json; |
1455 } | 1455 } |
1456 } | 1456 } |
OLD | NEW |