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_beta.language.v1beta2; | 3 library googleapis_beta.language.v1beta2; |
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 262 matching lines...) Loading... |
273 | 273 |
274 AnalyzeEntitiesRequest.fromJson(core.Map _json) { | 274 AnalyzeEntitiesRequest.fromJson(core.Map _json) { |
275 if (_json.containsKey("document")) { | 275 if (_json.containsKey("document")) { |
276 document = new Document.fromJson(_json["document"]); | 276 document = new Document.fromJson(_json["document"]); |
277 } | 277 } |
278 if (_json.containsKey("encodingType")) { | 278 if (_json.containsKey("encodingType")) { |
279 encodingType = _json["encodingType"]; | 279 encodingType = _json["encodingType"]; |
280 } | 280 } |
281 } | 281 } |
282 | 282 |
283 core.Map toJson() { | 283 core.Map<core.String, core.Object> toJson() { |
284 var _json = new core.Map(); | 284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
285 if (document != null) { | 285 if (document != null) { |
286 _json["document"] = (document).toJson(); | 286 _json["document"] = (document).toJson(); |
287 } | 287 } |
288 if (encodingType != null) { | 288 if (encodingType != null) { |
289 _json["encodingType"] = encodingType; | 289 _json["encodingType"] = encodingType; |
290 } | 290 } |
291 return _json; | 291 return _json; |
292 } | 292 } |
293 } | 293 } |
294 | 294 |
(...skipping 12 matching lines...) Loading... |
307 | 307 |
308 AnalyzeEntitiesResponse.fromJson(core.Map _json) { | 308 AnalyzeEntitiesResponse.fromJson(core.Map _json) { |
309 if (_json.containsKey("entities")) { | 309 if (_json.containsKey("entities")) { |
310 entities = _json["entities"].map((value) => new Entity.fromJson(value)).to
List(); | 310 entities = _json["entities"].map((value) => new Entity.fromJson(value)).to
List(); |
311 } | 311 } |
312 if (_json.containsKey("language")) { | 312 if (_json.containsKey("language")) { |
313 language = _json["language"]; | 313 language = _json["language"]; |
314 } | 314 } |
315 } | 315 } |
316 | 316 |
317 core.Map toJson() { | 317 core.Map<core.String, core.Object> toJson() { |
318 var _json = new core.Map(); | 318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
319 if (entities != null) { | 319 if (entities != null) { |
320 _json["entities"] = entities.map((value) => (value).toJson()).toList(); | 320 _json["entities"] = entities.map((value) => (value).toJson()).toList(); |
321 } | 321 } |
322 if (language != null) { | 322 if (language != null) { |
323 _json["language"] = language; | 323 _json["language"] = language; |
324 } | 324 } |
325 return _json; | 325 return _json; |
326 } | 326 } |
327 } | 327 } |
328 | 328 |
(...skipping 26 matching lines...) Loading... |
355 | 355 |
356 AnalyzeEntitySentimentRequest.fromJson(core.Map _json) { | 356 AnalyzeEntitySentimentRequest.fromJson(core.Map _json) { |
357 if (_json.containsKey("document")) { | 357 if (_json.containsKey("document")) { |
358 document = new Document.fromJson(_json["document"]); | 358 document = new Document.fromJson(_json["document"]); |
359 } | 359 } |
360 if (_json.containsKey("encodingType")) { | 360 if (_json.containsKey("encodingType")) { |
361 encodingType = _json["encodingType"]; | 361 encodingType = _json["encodingType"]; |
362 } | 362 } |
363 } | 363 } |
364 | 364 |
365 core.Map toJson() { | 365 core.Map<core.String, core.Object> toJson() { |
366 var _json = new core.Map(); | 366 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
367 if (document != null) { | 367 if (document != null) { |
368 _json["document"] = (document).toJson(); | 368 _json["document"] = (document).toJson(); |
369 } | 369 } |
370 if (encodingType != null) { | 370 if (encodingType != null) { |
371 _json["encodingType"] = encodingType; | 371 _json["encodingType"] = encodingType; |
372 } | 372 } |
373 return _json; | 373 return _json; |
374 } | 374 } |
375 } | 375 } |
376 | 376 |
(...skipping 14 matching lines...) Loading... |
391 | 391 |
392 AnalyzeEntitySentimentResponse.fromJson(core.Map _json) { | 392 AnalyzeEntitySentimentResponse.fromJson(core.Map _json) { |
393 if (_json.containsKey("entities")) { | 393 if (_json.containsKey("entities")) { |
394 entities = _json["entities"].map((value) => new Entity.fromJson(value)).to
List(); | 394 entities = _json["entities"].map((value) => new Entity.fromJson(value)).to
List(); |
395 } | 395 } |
396 if (_json.containsKey("language")) { | 396 if (_json.containsKey("language")) { |
397 language = _json["language"]; | 397 language = _json["language"]; |
398 } | 398 } |
399 } | 399 } |
400 | 400 |
401 core.Map toJson() { | 401 core.Map<core.String, core.Object> toJson() { |
402 var _json = new core.Map(); | 402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
403 if (entities != null) { | 403 if (entities != null) { |
404 _json["entities"] = entities.map((value) => (value).toJson()).toList(); | 404 _json["entities"] = entities.map((value) => (value).toJson()).toList(); |
405 } | 405 } |
406 if (language != null) { | 406 if (language != null) { |
407 _json["language"] = language; | 407 _json["language"] = language; |
408 } | 408 } |
409 return _json; | 409 return _json; |
410 } | 410 } |
411 } | 411 } |
412 | 412 |
(...skipping 27 matching lines...) Loading... |
440 | 440 |
441 AnalyzeSentimentRequest.fromJson(core.Map _json) { | 441 AnalyzeSentimentRequest.fromJson(core.Map _json) { |
442 if (_json.containsKey("document")) { | 442 if (_json.containsKey("document")) { |
443 document = new Document.fromJson(_json["document"]); | 443 document = new Document.fromJson(_json["document"]); |
444 } | 444 } |
445 if (_json.containsKey("encodingType")) { | 445 if (_json.containsKey("encodingType")) { |
446 encodingType = _json["encodingType"]; | 446 encodingType = _json["encodingType"]; |
447 } | 447 } |
448 } | 448 } |
449 | 449 |
450 core.Map toJson() { | 450 core.Map<core.String, core.Object> toJson() { |
451 var _json = new core.Map(); | 451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
452 if (document != null) { | 452 if (document != null) { |
453 _json["document"] = (document).toJson(); | 453 _json["document"] = (document).toJson(); |
454 } | 454 } |
455 if (encodingType != null) { | 455 if (encodingType != null) { |
456 _json["encodingType"] = encodingType; | 456 _json["encodingType"] = encodingType; |
457 } | 457 } |
458 return _json; | 458 return _json; |
459 } | 459 } |
460 } | 460 } |
461 | 461 |
(...skipping 17 matching lines...) Loading... |
479 documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]); | 479 documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]); |
480 } | 480 } |
481 if (_json.containsKey("language")) { | 481 if (_json.containsKey("language")) { |
482 language = _json["language"]; | 482 language = _json["language"]; |
483 } | 483 } |
484 if (_json.containsKey("sentences")) { | 484 if (_json.containsKey("sentences")) { |
485 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); | 485 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); |
486 } | 486 } |
487 } | 487 } |
488 | 488 |
489 core.Map toJson() { | 489 core.Map<core.String, core.Object> toJson() { |
490 var _json = new core.Map(); | 490 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
491 if (documentSentiment != null) { | 491 if (documentSentiment != null) { |
492 _json["documentSentiment"] = (documentSentiment).toJson(); | 492 _json["documentSentiment"] = (documentSentiment).toJson(); |
493 } | 493 } |
494 if (language != null) { | 494 if (language != null) { |
495 _json["language"] = language; | 495 _json["language"] = language; |
496 } | 496 } |
497 if (sentences != null) { | 497 if (sentences != null) { |
498 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); | 498 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); |
499 } | 499 } |
500 return _json; | 500 return _json; |
(...skipping 29 matching lines...) Loading... |
530 | 530 |
531 AnalyzeSyntaxRequest.fromJson(core.Map _json) { | 531 AnalyzeSyntaxRequest.fromJson(core.Map _json) { |
532 if (_json.containsKey("document")) { | 532 if (_json.containsKey("document")) { |
533 document = new Document.fromJson(_json["document"]); | 533 document = new Document.fromJson(_json["document"]); |
534 } | 534 } |
535 if (_json.containsKey("encodingType")) { | 535 if (_json.containsKey("encodingType")) { |
536 encodingType = _json["encodingType"]; | 536 encodingType = _json["encodingType"]; |
537 } | 537 } |
538 } | 538 } |
539 | 539 |
540 core.Map toJson() { | 540 core.Map<core.String, core.Object> toJson() { |
541 var _json = new core.Map(); | 541 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
542 if (document != null) { | 542 if (document != null) { |
543 _json["document"] = (document).toJson(); | 543 _json["document"] = (document).toJson(); |
544 } | 544 } |
545 if (encodingType != null) { | 545 if (encodingType != null) { |
546 _json["encodingType"] = encodingType; | 546 _json["encodingType"] = encodingType; |
547 } | 547 } |
548 return _json; | 548 return _json; |
549 } | 549 } |
550 } | 550 } |
551 | 551 |
(...skipping 17 matching lines...) 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 (language != null) { | 581 if (language != null) { |
582 _json["language"] = language; | 582 _json["language"] = language; |
583 } | 583 } |
584 if (sentences != null) { | 584 if (sentences != null) { |
585 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); | 585 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); |
586 } | 586 } |
587 if (tokens != null) { | 587 if (tokens != null) { |
588 _json["tokens"] = tokens.map((value) => (value).toJson()).toList(); | 588 _json["tokens"] = tokens.map((value) => (value).toJson()).toList(); |
589 } | 589 } |
590 return _json; | 590 return _json; |
(...skipping 37 matching lines...) Loading... |
628 document = new Document.fromJson(_json["document"]); | 628 document = new Document.fromJson(_json["document"]); |
629 } | 629 } |
630 if (_json.containsKey("encodingType")) { | 630 if (_json.containsKey("encodingType")) { |
631 encodingType = _json["encodingType"]; | 631 encodingType = _json["encodingType"]; |
632 } | 632 } |
633 if (_json.containsKey("features")) { | 633 if (_json.containsKey("features")) { |
634 features = new Features.fromJson(_json["features"]); | 634 features = new Features.fromJson(_json["features"]); |
635 } | 635 } |
636 } | 636 } |
637 | 637 |
638 core.Map toJson() { | 638 core.Map<core.String, core.Object> toJson() { |
639 var _json = new core.Map(); | 639 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
640 if (document != null) { | 640 if (document != null) { |
641 _json["document"] = (document).toJson(); | 641 _json["document"] = (document).toJson(); |
642 } | 642 } |
643 if (encodingType != null) { | 643 if (encodingType != null) { |
644 _json["encodingType"] = encodingType; | 644 _json["encodingType"] = encodingType; |
645 } | 645 } |
646 if (features != null) { | 646 if (features != null) { |
647 _json["features"] = (features).toJson(); | 647 _json["features"] = (features).toJson(); |
648 } | 648 } |
649 return _json; | 649 return _json; |
(...skipping 44 matching lines...) Loading... |
694 language = _json["language"]; | 694 language = _json["language"]; |
695 } | 695 } |
696 if (_json.containsKey("sentences")) { | 696 if (_json.containsKey("sentences")) { |
697 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); | 697 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)
).toList(); |
698 } | 698 } |
699 if (_json.containsKey("tokens")) { | 699 if (_json.containsKey("tokens")) { |
700 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(
); | 700 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(
); |
701 } | 701 } |
702 } | 702 } |
703 | 703 |
704 core.Map toJson() { | 704 core.Map<core.String, core.Object> toJson() { |
705 var _json = new core.Map(); | 705 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
706 if (documentSentiment != null) { | 706 if (documentSentiment != null) { |
707 _json["documentSentiment"] = (documentSentiment).toJson(); | 707 _json["documentSentiment"] = (documentSentiment).toJson(); |
708 } | 708 } |
709 if (entities != null) { | 709 if (entities != null) { |
710 _json["entities"] = entities.map((value) => (value).toJson()).toList(); | 710 _json["entities"] = entities.map((value) => (value).toJson()).toList(); |
711 } | 711 } |
712 if (language != null) { | 712 if (language != null) { |
713 _json["language"] = language; | 713 _json["language"] = language; |
714 } | 714 } |
715 if (sentences != null) { | 715 if (sentences != null) { |
(...skipping 104 matching lines...) Loading... |
820 | 820 |
821 DependencyEdge.fromJson(core.Map _json) { | 821 DependencyEdge.fromJson(core.Map _json) { |
822 if (_json.containsKey("headTokenIndex")) { | 822 if (_json.containsKey("headTokenIndex")) { |
823 headTokenIndex = _json["headTokenIndex"]; | 823 headTokenIndex = _json["headTokenIndex"]; |
824 } | 824 } |
825 if (_json.containsKey("label")) { | 825 if (_json.containsKey("label")) { |
826 label = _json["label"]; | 826 label = _json["label"]; |
827 } | 827 } |
828 } | 828 } |
829 | 829 |
830 core.Map toJson() { | 830 core.Map<core.String, core.Object> toJson() { |
831 var _json = new core.Map(); | 831 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
832 if (headTokenIndex != null) { | 832 if (headTokenIndex != null) { |
833 _json["headTokenIndex"] = headTokenIndex; | 833 _json["headTokenIndex"] = headTokenIndex; |
834 } | 834 } |
835 if (label != null) { | 835 if (label != null) { |
836 _json["label"] = label; | 836 _json["label"] = label; |
837 } | 837 } |
838 return _json; | 838 return _json; |
839 } | 839 } |
840 } | 840 } |
841 | 841 |
(...skipping 43 matching lines...) Loading... |
885 gcsContentUri = _json["gcsContentUri"]; | 885 gcsContentUri = _json["gcsContentUri"]; |
886 } | 886 } |
887 if (_json.containsKey("language")) { | 887 if (_json.containsKey("language")) { |
888 language = _json["language"]; | 888 language = _json["language"]; |
889 } | 889 } |
890 if (_json.containsKey("type")) { | 890 if (_json.containsKey("type")) { |
891 type = _json["type"]; | 891 type = _json["type"]; |
892 } | 892 } |
893 } | 893 } |
894 | 894 |
895 core.Map toJson() { | 895 core.Map<core.String, core.Object> toJson() { |
896 var _json = new core.Map(); | 896 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
897 if (content != null) { | 897 if (content != null) { |
898 _json["content"] = content; | 898 _json["content"] = content; |
899 } | 899 } |
900 if (gcsContentUri != null) { | 900 if (gcsContentUri != null) { |
901 _json["gcsContentUri"] = gcsContentUri; | 901 _json["gcsContentUri"] = gcsContentUri; |
902 } | 902 } |
903 if (language != null) { | 903 if (language != null) { |
904 _json["language"] = language; | 904 _json["language"] = language; |
905 } | 905 } |
906 if (type != null) { | 906 if (type != null) { |
(...skipping 69 matching lines...) Loading... |
976 salience = _json["salience"]; | 976 salience = _json["salience"]; |
977 } | 977 } |
978 if (_json.containsKey("sentiment")) { | 978 if (_json.containsKey("sentiment")) { |
979 sentiment = new Sentiment.fromJson(_json["sentiment"]); | 979 sentiment = new Sentiment.fromJson(_json["sentiment"]); |
980 } | 980 } |
981 if (_json.containsKey("type")) { | 981 if (_json.containsKey("type")) { |
982 type = _json["type"]; | 982 type = _json["type"]; |
983 } | 983 } |
984 } | 984 } |
985 | 985 |
986 core.Map toJson() { | 986 core.Map<core.String, core.Object> toJson() { |
987 var _json = new core.Map(); | 987 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
988 if (mentions != null) { | 988 if (mentions != null) { |
989 _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); | 989 _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); |
990 } | 990 } |
991 if (metadata != null) { | 991 if (metadata != null) { |
992 _json["metadata"] = metadata; | 992 _json["metadata"] = metadata; |
993 } | 993 } |
994 if (name != null) { | 994 if (name != null) { |
995 _json["name"] = name; | 995 _json["name"] = name; |
996 } | 996 } |
997 if (salience != null) { | 997 if (salience != null) { |
(...skipping 39 matching lines...) Loading... |
1037 sentiment = new Sentiment.fromJson(_json["sentiment"]); | 1037 sentiment = new Sentiment.fromJson(_json["sentiment"]); |
1038 } | 1038 } |
1039 if (_json.containsKey("text")) { | 1039 if (_json.containsKey("text")) { |
1040 text = new TextSpan.fromJson(_json["text"]); | 1040 text = new TextSpan.fromJson(_json["text"]); |
1041 } | 1041 } |
1042 if (_json.containsKey("type")) { | 1042 if (_json.containsKey("type")) { |
1043 type = _json["type"]; | 1043 type = _json["type"]; |
1044 } | 1044 } |
1045 } | 1045 } |
1046 | 1046 |
1047 core.Map toJson() { | 1047 core.Map<core.String, core.Object> toJson() { |
1048 var _json = new core.Map(); | 1048 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1049 if (sentiment != null) { | 1049 if (sentiment != null) { |
1050 _json["sentiment"] = (sentiment).toJson(); | 1050 _json["sentiment"] = (sentiment).toJson(); |
1051 } | 1051 } |
1052 if (text != null) { | 1052 if (text != null) { |
1053 _json["text"] = (text).toJson(); | 1053 _json["text"] = (text).toJson(); |
1054 } | 1054 } |
1055 if (type != null) { | 1055 if (type != null) { |
1056 _json["type"] = type; | 1056 _json["type"] = type; |
1057 } | 1057 } |
1058 return _json; | 1058 return _json; |
(...skipping 24 matching lines...) Loading... |
1083 extractEntities = _json["extractEntities"]; | 1083 extractEntities = _json["extractEntities"]; |
1084 } | 1084 } |
1085 if (_json.containsKey("extractEntitySentiment")) { | 1085 if (_json.containsKey("extractEntitySentiment")) { |
1086 extractEntitySentiment = _json["extractEntitySentiment"]; | 1086 extractEntitySentiment = _json["extractEntitySentiment"]; |
1087 } | 1087 } |
1088 if (_json.containsKey("extractSyntax")) { | 1088 if (_json.containsKey("extractSyntax")) { |
1089 extractSyntax = _json["extractSyntax"]; | 1089 extractSyntax = _json["extractSyntax"]; |
1090 } | 1090 } |
1091 } | 1091 } |
1092 | 1092 |
1093 core.Map toJson() { | 1093 core.Map<core.String, core.Object> toJson() { |
1094 var _json = new core.Map(); | 1094 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1095 if (extractDocumentSentiment != null) { | 1095 if (extractDocumentSentiment != null) { |
1096 _json["extractDocumentSentiment"] = extractDocumentSentiment; | 1096 _json["extractDocumentSentiment"] = extractDocumentSentiment; |
1097 } | 1097 } |
1098 if (extractEntities != null) { | 1098 if (extractEntities != null) { |
1099 _json["extractEntities"] = extractEntities; | 1099 _json["extractEntities"] = extractEntities; |
1100 } | 1100 } |
1101 if (extractEntitySentiment != null) { | 1101 if (extractEntitySentiment != null) { |
1102 _json["extractEntitySentiment"] = extractEntitySentiment; | 1102 _json["extractEntitySentiment"] = extractEntitySentiment; |
1103 } | 1103 } |
1104 if (extractSyntax != null) { | 1104 if (extractSyntax != null) { |
(...skipping 194 matching lines...) Loading... |
1299 tag = _json["tag"]; | 1299 tag = _json["tag"]; |
1300 } | 1300 } |
1301 if (_json.containsKey("tense")) { | 1301 if (_json.containsKey("tense")) { |
1302 tense = _json["tense"]; | 1302 tense = _json["tense"]; |
1303 } | 1303 } |
1304 if (_json.containsKey("voice")) { | 1304 if (_json.containsKey("voice")) { |
1305 voice = _json["voice"]; | 1305 voice = _json["voice"]; |
1306 } | 1306 } |
1307 } | 1307 } |
1308 | 1308 |
1309 core.Map toJson() { | 1309 core.Map<core.String, core.Object> toJson() { |
1310 var _json = new core.Map(); | 1310 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1311 if (aspect != null) { | 1311 if (aspect != null) { |
1312 _json["aspect"] = aspect; | 1312 _json["aspect"] = aspect; |
1313 } | 1313 } |
1314 if (case_ != null) { | 1314 if (case_ != null) { |
1315 _json["case"] = case_; | 1315 _json["case"] = case_; |
1316 } | 1316 } |
1317 if (form != null) { | 1317 if (form != null) { |
1318 _json["form"] = form; | 1318 _json["form"] = form; |
1319 } | 1319 } |
1320 if (gender != null) { | 1320 if (gender != null) { |
(...skipping 42 matching lines...) Loading... |
1363 | 1363 |
1364 Sentence.fromJson(core.Map _json) { | 1364 Sentence.fromJson(core.Map _json) { |
1365 if (_json.containsKey("sentiment")) { | 1365 if (_json.containsKey("sentiment")) { |
1366 sentiment = new Sentiment.fromJson(_json["sentiment"]); | 1366 sentiment = new Sentiment.fromJson(_json["sentiment"]); |
1367 } | 1367 } |
1368 if (_json.containsKey("text")) { | 1368 if (_json.containsKey("text")) { |
1369 text = new TextSpan.fromJson(_json["text"]); | 1369 text = new TextSpan.fromJson(_json["text"]); |
1370 } | 1370 } |
1371 } | 1371 } |
1372 | 1372 |
1373 core.Map toJson() { | 1373 core.Map<core.String, core.Object> toJson() { |
1374 var _json = new core.Map(); | 1374 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1375 if (sentiment != null) { | 1375 if (sentiment != null) { |
1376 _json["sentiment"] = (sentiment).toJson(); | 1376 _json["sentiment"] = (sentiment).toJson(); |
1377 } | 1377 } |
1378 if (text != null) { | 1378 if (text != null) { |
1379 _json["text"] = (text).toJson(); | 1379 _json["text"] = (text).toJson(); |
1380 } | 1380 } |
1381 return _json; | 1381 return _json; |
1382 } | 1382 } |
1383 } | 1383 } |
1384 | 1384 |
(...skipping 18 matching lines...) Loading... |
1403 | 1403 |
1404 Sentiment.fromJson(core.Map _json) { | 1404 Sentiment.fromJson(core.Map _json) { |
1405 if (_json.containsKey("magnitude")) { | 1405 if (_json.containsKey("magnitude")) { |
1406 magnitude = _json["magnitude"]; | 1406 magnitude = _json["magnitude"]; |
1407 } | 1407 } |
1408 if (_json.containsKey("score")) { | 1408 if (_json.containsKey("score")) { |
1409 score = _json["score"]; | 1409 score = _json["score"]; |
1410 } | 1410 } |
1411 } | 1411 } |
1412 | 1412 |
1413 core.Map toJson() { | 1413 core.Map<core.String, core.Object> toJson() { |
1414 var _json = new core.Map(); | 1414 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1415 if (magnitude != null) { | 1415 if (magnitude != null) { |
1416 _json["magnitude"] = magnitude; | 1416 _json["magnitude"] = magnitude; |
1417 } | 1417 } |
1418 if (score != null) { | 1418 if (score != null) { |
1419 _json["score"] = score; | 1419 _json["score"] = score; |
1420 } | 1420 } |
1421 return _json; | 1421 return _json; |
1422 } | 1422 } |
1423 } | 1423 } |
1424 | 1424 |
(...skipping 78 matching lines...) Loading... |
1503 code = _json["code"]; | 1503 code = _json["code"]; |
1504 } | 1504 } |
1505 if (_json.containsKey("details")) { | 1505 if (_json.containsKey("details")) { |
1506 details = _json["details"]; | 1506 details = _json["details"]; |
1507 } | 1507 } |
1508 if (_json.containsKey("message")) { | 1508 if (_json.containsKey("message")) { |
1509 message = _json["message"]; | 1509 message = _json["message"]; |
1510 } | 1510 } |
1511 } | 1511 } |
1512 | 1512 |
1513 core.Map toJson() { | 1513 core.Map<core.String, core.Object> toJson() { |
1514 var _json = new core.Map(); | 1514 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1515 if (code != null) { | 1515 if (code != null) { |
1516 _json["code"] = code; | 1516 _json["code"] = code; |
1517 } | 1517 } |
1518 if (details != null) { | 1518 if (details != null) { |
1519 _json["details"] = details; | 1519 _json["details"] = details; |
1520 } | 1520 } |
1521 if (message != null) { | 1521 if (message != null) { |
1522 _json["message"] = message; | 1522 _json["message"] = message; |
1523 } | 1523 } |
1524 return _json; | 1524 return _json; |
(...skipping 14 matching lines...) Loading... |
1539 | 1539 |
1540 TextSpan.fromJson(core.Map _json) { | 1540 TextSpan.fromJson(core.Map _json) { |
1541 if (_json.containsKey("beginOffset")) { | 1541 if (_json.containsKey("beginOffset")) { |
1542 beginOffset = _json["beginOffset"]; | 1542 beginOffset = _json["beginOffset"]; |
1543 } | 1543 } |
1544 if (_json.containsKey("content")) { | 1544 if (_json.containsKey("content")) { |
1545 content = _json["content"]; | 1545 content = _json["content"]; |
1546 } | 1546 } |
1547 } | 1547 } |
1548 | 1548 |
1549 core.Map toJson() { | 1549 core.Map<core.String, core.Object> toJson() { |
1550 var _json = new core.Map(); | 1550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1551 if (beginOffset != null) { | 1551 if (beginOffset != null) { |
1552 _json["beginOffset"] = beginOffset; | 1552 _json["beginOffset"] = beginOffset; |
1553 } | 1553 } |
1554 if (content != null) { | 1554 if (content != null) { |
1555 _json["content"] = content; | 1555 _json["content"] = content; |
1556 } | 1556 } |
1557 return _json; | 1557 return _json; |
1558 } | 1558 } |
1559 } | 1559 } |
1560 | 1560 |
(...skipping 20 matching lines...) Loading... |
1581 lemma = _json["lemma"]; | 1581 lemma = _json["lemma"]; |
1582 } | 1582 } |
1583 if (_json.containsKey("partOfSpeech")) { | 1583 if (_json.containsKey("partOfSpeech")) { |
1584 partOfSpeech = new PartOfSpeech.fromJson(_json["partOfSpeech"]); | 1584 partOfSpeech = new PartOfSpeech.fromJson(_json["partOfSpeech"]); |
1585 } | 1585 } |
1586 if (_json.containsKey("text")) { | 1586 if (_json.containsKey("text")) { |
1587 text = new TextSpan.fromJson(_json["text"]); | 1587 text = new TextSpan.fromJson(_json["text"]); |
1588 } | 1588 } |
1589 } | 1589 } |
1590 | 1590 |
1591 core.Map toJson() { | 1591 core.Map<core.String, core.Object> toJson() { |
1592 var _json = new core.Map(); | 1592 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1593 if (dependencyEdge != null) { | 1593 if (dependencyEdge != null) { |
1594 _json["dependencyEdge"] = (dependencyEdge).toJson(); | 1594 _json["dependencyEdge"] = (dependencyEdge).toJson(); |
1595 } | 1595 } |
1596 if (lemma != null) { | 1596 if (lemma != null) { |
1597 _json["lemma"] = lemma; | 1597 _json["lemma"] = lemma; |
1598 } | 1598 } |
1599 if (partOfSpeech != null) { | 1599 if (partOfSpeech != null) { |
1600 _json["partOfSpeech"] = (partOfSpeech).toJson(); | 1600 _json["partOfSpeech"] = (partOfSpeech).toJson(); |
1601 } | 1601 } |
1602 if (text != null) { | 1602 if (text != null) { |
1603 _json["text"] = (text).toJson(); | 1603 _json["text"] = (text).toJson(); |
1604 } | 1604 } |
1605 return _json; | 1605 return _json; |
1606 } | 1606 } |
1607 } | 1607 } |
OLD | NEW |