Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Side by Side Diff: generated/googleapis_beta/lib/language/v1beta1.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.v1beta1; 3 library googleapis_beta.language.v1beta1;
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
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
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 27 matching lines...) Expand all
316 316
317 AnalyzeSentimentRequest.fromJson(core.Map _json) { 317 AnalyzeSentimentRequest.fromJson(core.Map _json) {
318 if (_json.containsKey("document")) { 318 if (_json.containsKey("document")) {
319 document = new Document.fromJson(_json["document"]); 319 document = new Document.fromJson(_json["document"]);
320 } 320 }
321 if (_json.containsKey("encodingType")) { 321 if (_json.containsKey("encodingType")) {
322 encodingType = _json["encodingType"]; 322 encodingType = _json["encodingType"];
323 } 323 }
324 } 324 }
325 325
326 core.Map toJson() { 326 core.Map<core.String, core.Object> toJson() {
327 var _json = new core.Map(); 327 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
328 if (document != null) { 328 if (document != null) {
329 _json["document"] = (document).toJson(); 329 _json["document"] = (document).toJson();
330 } 330 }
331 if (encodingType != null) { 331 if (encodingType != null) {
332 _json["encodingType"] = encodingType; 332 _json["encodingType"] = encodingType;
333 } 333 }
334 return _json; 334 return _json;
335 } 335 }
336 } 336 }
337 337
(...skipping 17 matching lines...) Expand all
355 documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]); 355 documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]);
356 } 356 }
357 if (_json.containsKey("language")) { 357 if (_json.containsKey("language")) {
358 language = _json["language"]; 358 language = _json["language"];
359 } 359 }
360 if (_json.containsKey("sentences")) { 360 if (_json.containsKey("sentences")) {
361 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value) ).toList(); 361 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value) ).toList();
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 (documentSentiment != null) { 367 if (documentSentiment != null) {
368 _json["documentSentiment"] = (documentSentiment).toJson(); 368 _json["documentSentiment"] = (documentSentiment).toJson();
369 } 369 }
370 if (language != null) { 370 if (language != null) {
371 _json["language"] = language; 371 _json["language"] = language;
372 } 372 }
373 if (sentences != null) { 373 if (sentences != null) {
374 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); 374 _json["sentences"] = sentences.map((value) => (value).toJson()).toList();
375 } 375 }
376 return _json; 376 return _json;
(...skipping 29 matching lines...) Expand all
406 406
407 AnalyzeSyntaxRequest.fromJson(core.Map _json) { 407 AnalyzeSyntaxRequest.fromJson(core.Map _json) {
408 if (_json.containsKey("document")) { 408 if (_json.containsKey("document")) {
409 document = new Document.fromJson(_json["document"]); 409 document = new Document.fromJson(_json["document"]);
410 } 410 }
411 if (_json.containsKey("encodingType")) { 411 if (_json.containsKey("encodingType")) {
412 encodingType = _json["encodingType"]; 412 encodingType = _json["encodingType"];
413 } 413 }
414 } 414 }
415 415
416 core.Map toJson() { 416 core.Map<core.String, core.Object> toJson() {
417 var _json = new core.Map(); 417 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
418 if (document != null) { 418 if (document != null) {
419 _json["document"] = (document).toJson(); 419 _json["document"] = (document).toJson();
420 } 420 }
421 if (encodingType != null) { 421 if (encodingType != null) {
422 _json["encodingType"] = encodingType; 422 _json["encodingType"] = encodingType;
423 } 423 }
424 return _json; 424 return _json;
425 } 425 }
426 } 426 }
427 427
(...skipping 17 matching lines...) Expand all
445 language = _json["language"]; 445 language = _json["language"];
446 } 446 }
447 if (_json.containsKey("sentences")) { 447 if (_json.containsKey("sentences")) {
448 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value) ).toList(); 448 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value) ).toList();
449 } 449 }
450 if (_json.containsKey("tokens")) { 450 if (_json.containsKey("tokens")) {
451 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList( ); 451 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList( );
452 } 452 }
453 } 453 }
454 454
455 core.Map toJson() { 455 core.Map<core.String, core.Object> toJson() {
456 var _json = new core.Map(); 456 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
457 if (language != null) { 457 if (language != null) {
458 _json["language"] = language; 458 _json["language"] = language;
459 } 459 }
460 if (sentences != null) { 460 if (sentences != null) {
461 _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); 461 _json["sentences"] = sentences.map((value) => (value).toJson()).toList();
462 } 462 }
463 if (tokens != null) { 463 if (tokens != null) {
464 _json["tokens"] = tokens.map((value) => (value).toJson()).toList(); 464 _json["tokens"] = tokens.map((value) => (value).toJson()).toList();
465 } 465 }
466 return _json; 466 return _json;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 document = new Document.fromJson(_json["document"]); 504 document = new Document.fromJson(_json["document"]);
505 } 505 }
506 if (_json.containsKey("encodingType")) { 506 if (_json.containsKey("encodingType")) {
507 encodingType = _json["encodingType"]; 507 encodingType = _json["encodingType"];
508 } 508 }
509 if (_json.containsKey("features")) { 509 if (_json.containsKey("features")) {
510 features = new Features.fromJson(_json["features"]); 510 features = new Features.fromJson(_json["features"]);
511 } 511 }
512 } 512 }
513 513
514 core.Map toJson() { 514 core.Map<core.String, core.Object> toJson() {
515 var _json = new core.Map(); 515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
516 if (document != null) { 516 if (document != null) {
517 _json["document"] = (document).toJson(); 517 _json["document"] = (document).toJson();
518 } 518 }
519 if (encodingType != null) { 519 if (encodingType != null) {
520 _json["encodingType"] = encodingType; 520 _json["encodingType"] = encodingType;
521 } 521 }
522 if (features != null) { 522 if (features != null) {
523 _json["features"] = (features).toJson(); 523 _json["features"] = (features).toJson();
524 } 524 }
525 return _json; 525 return _json;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 language = _json["language"]; 570 language = _json["language"];
571 } 571 }
572 if (_json.containsKey("sentences")) { 572 if (_json.containsKey("sentences")) {
573 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value) ).toList(); 573 sentences = _json["sentences"].map((value) => new Sentence.fromJson(value) ).toList();
574 } 574 }
575 if (_json.containsKey("tokens")) { 575 if (_json.containsKey("tokens")) {
576 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList( ); 576 tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList( );
577 } 577 }
578 } 578 }
579 579
580 core.Map toJson() { 580 core.Map<core.String, core.Object> toJson() {
581 var _json = new core.Map(); 581 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
582 if (documentSentiment != null) { 582 if (documentSentiment != null) {
583 _json["documentSentiment"] = (documentSentiment).toJson(); 583 _json["documentSentiment"] = (documentSentiment).toJson();
584 } 584 }
585 if (entities != null) { 585 if (entities != null) {
586 _json["entities"] = entities.map((value) => (value).toJson()).toList(); 586 _json["entities"] = entities.map((value) => (value).toJson()).toList();
587 } 587 }
588 if (language != null) { 588 if (language != null) {
589 _json["language"] = language; 589 _json["language"] = language;
590 } 590 }
591 if (sentences != null) { 591 if (sentences != null) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 696
697 DependencyEdge.fromJson(core.Map _json) { 697 DependencyEdge.fromJson(core.Map _json) {
698 if (_json.containsKey("headTokenIndex")) { 698 if (_json.containsKey("headTokenIndex")) {
699 headTokenIndex = _json["headTokenIndex"]; 699 headTokenIndex = _json["headTokenIndex"];
700 } 700 }
701 if (_json.containsKey("label")) { 701 if (_json.containsKey("label")) {
702 label = _json["label"]; 702 label = _json["label"];
703 } 703 }
704 } 704 }
705 705
706 core.Map toJson() { 706 core.Map<core.String, core.Object> toJson() {
707 var _json = new core.Map(); 707 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
708 if (headTokenIndex != null) { 708 if (headTokenIndex != null) {
709 _json["headTokenIndex"] = headTokenIndex; 709 _json["headTokenIndex"] = headTokenIndex;
710 } 710 }
711 if (label != null) { 711 if (label != null) {
712 _json["label"] = label; 712 _json["label"] = label;
713 } 713 }
714 return _json; 714 return _json;
715 } 715 }
716 } 716 }
717 717
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 gcsContentUri = _json["gcsContentUri"]; 761 gcsContentUri = _json["gcsContentUri"];
762 } 762 }
763 if (_json.containsKey("language")) { 763 if (_json.containsKey("language")) {
764 language = _json["language"]; 764 language = _json["language"];
765 } 765 }
766 if (_json.containsKey("type")) { 766 if (_json.containsKey("type")) {
767 type = _json["type"]; 767 type = _json["type"];
768 } 768 }
769 } 769 }
770 770
771 core.Map toJson() { 771 core.Map<core.String, core.Object> toJson() {
772 var _json = new core.Map(); 772 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
773 if (content != null) { 773 if (content != null) {
774 _json["content"] = content; 774 _json["content"] = content;
775 } 775 }
776 if (gcsContentUri != null) { 776 if (gcsContentUri != null) {
777 _json["gcsContentUri"] = gcsContentUri; 777 _json["gcsContentUri"] = gcsContentUri;
778 } 778 }
779 if (language != null) { 779 if (language != null) {
780 _json["language"] = language; 780 _json["language"] = language;
781 } 781 }
782 if (type != null) { 782 if (type != null) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 name = _json["name"]; 842 name = _json["name"];
843 } 843 }
844 if (_json.containsKey("salience")) { 844 if (_json.containsKey("salience")) {
845 salience = _json["salience"]; 845 salience = _json["salience"];
846 } 846 }
847 if (_json.containsKey("type")) { 847 if (_json.containsKey("type")) {
848 type = _json["type"]; 848 type = _json["type"];
849 } 849 }
850 } 850 }
851 851
852 core.Map toJson() { 852 core.Map<core.String, core.Object> toJson() {
853 var _json = new core.Map(); 853 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
854 if (mentions != null) { 854 if (mentions != null) {
855 _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); 855 _json["mentions"] = mentions.map((value) => (value).toJson()).toList();
856 } 856 }
857 if (metadata != null) { 857 if (metadata != null) {
858 _json["metadata"] = metadata; 858 _json["metadata"] = metadata;
859 } 859 }
860 if (name != null) { 860 if (name != null) {
861 _json["name"] = name; 861 _json["name"] = name;
862 } 862 }
863 if (salience != null) { 863 if (salience != null) {
(...skipping 26 matching lines...) Expand all
890 890
891 EntityMention.fromJson(core.Map _json) { 891 EntityMention.fromJson(core.Map _json) {
892 if (_json.containsKey("text")) { 892 if (_json.containsKey("text")) {
893 text = new TextSpan.fromJson(_json["text"]); 893 text = new TextSpan.fromJson(_json["text"]);
894 } 894 }
895 if (_json.containsKey("type")) { 895 if (_json.containsKey("type")) {
896 type = _json["type"]; 896 type = _json["type"];
897 } 897 }
898 } 898 }
899 899
900 core.Map toJson() { 900 core.Map<core.String, core.Object> toJson() {
901 var _json = new core.Map(); 901 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
902 if (text != null) { 902 if (text != null) {
903 _json["text"] = (text).toJson(); 903 _json["text"] = (text).toJson();
904 } 904 }
905 if (type != null) { 905 if (type != null) {
906 _json["type"] = type; 906 _json["type"] = type;
907 } 907 }
908 return _json; 908 return _json;
909 } 909 }
910 } 910 }
911 911
(...skipping 16 matching lines...) Expand all
928 extractDocumentSentiment = _json["extractDocumentSentiment"]; 928 extractDocumentSentiment = _json["extractDocumentSentiment"];
929 } 929 }
930 if (_json.containsKey("extractEntities")) { 930 if (_json.containsKey("extractEntities")) {
931 extractEntities = _json["extractEntities"]; 931 extractEntities = _json["extractEntities"];
932 } 932 }
933 if (_json.containsKey("extractSyntax")) { 933 if (_json.containsKey("extractSyntax")) {
934 extractSyntax = _json["extractSyntax"]; 934 extractSyntax = _json["extractSyntax"];
935 } 935 }
936 } 936 }
937 937
938 core.Map toJson() { 938 core.Map<core.String, core.Object> toJson() {
939 var _json = new core.Map(); 939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
940 if (extractDocumentSentiment != null) { 940 if (extractDocumentSentiment != null) {
941 _json["extractDocumentSentiment"] = extractDocumentSentiment; 941 _json["extractDocumentSentiment"] = extractDocumentSentiment;
942 } 942 }
943 if (extractEntities != null) { 943 if (extractEntities != null) {
944 _json["extractEntities"] = extractEntities; 944 _json["extractEntities"] = extractEntities;
945 } 945 }
946 if (extractSyntax != null) { 946 if (extractSyntax != null) {
947 _json["extractSyntax"] = extractSyntax; 947 _json["extractSyntax"] = extractSyntax;
948 } 948 }
949 return _json; 949 return _json;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 tag = _json["tag"]; 1141 tag = _json["tag"];
1142 } 1142 }
1143 if (_json.containsKey("tense")) { 1143 if (_json.containsKey("tense")) {
1144 tense = _json["tense"]; 1144 tense = _json["tense"];
1145 } 1145 }
1146 if (_json.containsKey("voice")) { 1146 if (_json.containsKey("voice")) {
1147 voice = _json["voice"]; 1147 voice = _json["voice"];
1148 } 1148 }
1149 } 1149 }
1150 1150
1151 core.Map toJson() { 1151 core.Map<core.String, core.Object> toJson() {
1152 var _json = new core.Map(); 1152 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1153 if (aspect != null) { 1153 if (aspect != null) {
1154 _json["aspect"] = aspect; 1154 _json["aspect"] = aspect;
1155 } 1155 }
1156 if (case_ != null) { 1156 if (case_ != null) {
1157 _json["case"] = case_; 1157 _json["case"] = case_;
1158 } 1158 }
1159 if (form != null) { 1159 if (form != null) {
1160 _json["form"] = form; 1160 _json["form"] = form;
1161 } 1161 }
1162 if (gender != null) { 1162 if (gender != null) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 1205
1206 Sentence.fromJson(core.Map _json) { 1206 Sentence.fromJson(core.Map _json) {
1207 if (_json.containsKey("sentiment")) { 1207 if (_json.containsKey("sentiment")) {
1208 sentiment = new Sentiment.fromJson(_json["sentiment"]); 1208 sentiment = new Sentiment.fromJson(_json["sentiment"]);
1209 } 1209 }
1210 if (_json.containsKey("text")) { 1210 if (_json.containsKey("text")) {
1211 text = new TextSpan.fromJson(_json["text"]); 1211 text = new TextSpan.fromJson(_json["text"]);
1212 } 1212 }
1213 } 1213 }
1214 1214
1215 core.Map toJson() { 1215 core.Map<core.String, core.Object> toJson() {
1216 var _json = new core.Map(); 1216 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1217 if (sentiment != null) { 1217 if (sentiment != null) {
1218 _json["sentiment"] = (sentiment).toJson(); 1218 _json["sentiment"] = (sentiment).toJson();
1219 } 1219 }
1220 if (text != null) { 1220 if (text != null) {
1221 _json["text"] = (text).toJson(); 1221 _json["text"] = (text).toJson();
1222 } 1222 }
1223 return _json; 1223 return _json;
1224 } 1224 }
1225 } 1225 }
1226 1226
(...skipping 27 matching lines...) Expand all
1254 magnitude = _json["magnitude"]; 1254 magnitude = _json["magnitude"];
1255 } 1255 }
1256 if (_json.containsKey("polarity")) { 1256 if (_json.containsKey("polarity")) {
1257 polarity = _json["polarity"]; 1257 polarity = _json["polarity"];
1258 } 1258 }
1259 if (_json.containsKey("score")) { 1259 if (_json.containsKey("score")) {
1260 score = _json["score"]; 1260 score = _json["score"];
1261 } 1261 }
1262 } 1262 }
1263 1263
1264 core.Map toJson() { 1264 core.Map<core.String, core.Object> toJson() {
1265 var _json = new core.Map(); 1265 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1266 if (magnitude != null) { 1266 if (magnitude != null) {
1267 _json["magnitude"] = magnitude; 1267 _json["magnitude"] = magnitude;
1268 } 1268 }
1269 if (polarity != null) { 1269 if (polarity != null) {
1270 _json["polarity"] = polarity; 1270 _json["polarity"] = polarity;
1271 } 1271 }
1272 if (score != null) { 1272 if (score != null) {
1273 _json["score"] = score; 1273 _json["score"] = score;
1274 } 1274 }
1275 return _json; 1275 return _json;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 code = _json["code"]; 1357 code = _json["code"];
1358 } 1358 }
1359 if (_json.containsKey("details")) { 1359 if (_json.containsKey("details")) {
1360 details = _json["details"]; 1360 details = _json["details"];
1361 } 1361 }
1362 if (_json.containsKey("message")) { 1362 if (_json.containsKey("message")) {
1363 message = _json["message"]; 1363 message = _json["message"];
1364 } 1364 }
1365 } 1365 }
1366 1366
1367 core.Map toJson() { 1367 core.Map<core.String, core.Object> toJson() {
1368 var _json = new core.Map(); 1368 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1369 if (code != null) { 1369 if (code != null) {
1370 _json["code"] = code; 1370 _json["code"] = code;
1371 } 1371 }
1372 if (details != null) { 1372 if (details != null) {
1373 _json["details"] = details; 1373 _json["details"] = details;
1374 } 1374 }
1375 if (message != null) { 1375 if (message != null) {
1376 _json["message"] = message; 1376 _json["message"] = message;
1377 } 1377 }
1378 return _json; 1378 return _json;
(...skipping 14 matching lines...) Expand all
1393 1393
1394 TextSpan.fromJson(core.Map _json) { 1394 TextSpan.fromJson(core.Map _json) {
1395 if (_json.containsKey("beginOffset")) { 1395 if (_json.containsKey("beginOffset")) {
1396 beginOffset = _json["beginOffset"]; 1396 beginOffset = _json["beginOffset"];
1397 } 1397 }
1398 if (_json.containsKey("content")) { 1398 if (_json.containsKey("content")) {
1399 content = _json["content"]; 1399 content = _json["content"];
1400 } 1400 }
1401 } 1401 }
1402 1402
1403 core.Map toJson() { 1403 core.Map<core.String, core.Object> toJson() {
1404 var _json = new core.Map(); 1404 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1405 if (beginOffset != null) { 1405 if (beginOffset != null) {
1406 _json["beginOffset"] = beginOffset; 1406 _json["beginOffset"] = beginOffset;
1407 } 1407 }
1408 if (content != null) { 1408 if (content != null) {
1409 _json["content"] = content; 1409 _json["content"] = content;
1410 } 1410 }
1411 return _json; 1411 return _json;
1412 } 1412 }
1413 } 1413 }
1414 1414
(...skipping 20 matching lines...) Expand all
1435 lemma = _json["lemma"]; 1435 lemma = _json["lemma"];
1436 } 1436 }
1437 if (_json.containsKey("partOfSpeech")) { 1437 if (_json.containsKey("partOfSpeech")) {
1438 partOfSpeech = new PartOfSpeech.fromJson(_json["partOfSpeech"]); 1438 partOfSpeech = new PartOfSpeech.fromJson(_json["partOfSpeech"]);
1439 } 1439 }
1440 if (_json.containsKey("text")) { 1440 if (_json.containsKey("text")) {
1441 text = new TextSpan.fromJson(_json["text"]); 1441 text = new TextSpan.fromJson(_json["text"]);
1442 } 1442 }
1443 } 1443 }
1444 1444
1445 core.Map toJson() { 1445 core.Map<core.String, core.Object> toJson() {
1446 var _json = new core.Map(); 1446 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1447 if (dependencyEdge != null) { 1447 if (dependencyEdge != null) {
1448 _json["dependencyEdge"] = (dependencyEdge).toJson(); 1448 _json["dependencyEdge"] = (dependencyEdge).toJson();
1449 } 1449 }
1450 if (lemma != null) { 1450 if (lemma != null) {
1451 _json["lemma"] = lemma; 1451 _json["lemma"] = lemma;
1452 } 1452 }
1453 if (partOfSpeech != null) { 1453 if (partOfSpeech != null) {
1454 _json["partOfSpeech"] = (partOfSpeech).toJson(); 1454 _json["partOfSpeech"] = (partOfSpeech).toJson();
1455 } 1455 }
1456 if (text != null) { 1456 if (text != null) {
1457 _json["text"] = (text).toJson(); 1457 _json["text"] = (text).toJson();
1458 } 1458 }
1459 return _json; 1459 return _json;
1460 } 1460 }
1461 } 1461 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/dns/v2beta1.dart ('k') | generated/googleapis_beta/lib/language/v1beta2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698