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

Side by Side Diff: generated/googleapis/lib/vision/v1.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.vision.v1; 3 library googleapis.vision.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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 features = _json["features"].map((value) => new Feature.fromJson(value)).t oList(); 101 features = _json["features"].map((value) => new Feature.fromJson(value)).t oList();
102 } 102 }
103 if (_json.containsKey("image")) { 103 if (_json.containsKey("image")) {
104 image = new Image.fromJson(_json["image"]); 104 image = new Image.fromJson(_json["image"]);
105 } 105 }
106 if (_json.containsKey("imageContext")) { 106 if (_json.containsKey("imageContext")) {
107 imageContext = new ImageContext.fromJson(_json["imageContext"]); 107 imageContext = new ImageContext.fromJson(_json["imageContext"]);
108 } 108 }
109 } 109 }
110 110
111 core.Map toJson() { 111 core.Map<core.String, core.Object> toJson() {
112 var _json = new core.Map(); 112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
113 if (features != null) { 113 if (features != null) {
114 _json["features"] = features.map((value) => (value).toJson()).toList(); 114 _json["features"] = features.map((value) => (value).toJson()).toList();
115 } 115 }
116 if (image != null) { 116 if (image != null) {
117 _json["image"] = (image).toJson(); 117 _json["image"] = (image).toJson();
118 } 118 }
119 if (imageContext != null) { 119 if (imageContext != null) {
120 _json["imageContext"] = (imageContext).toJson(); 120 _json["imageContext"] = (imageContext).toJson();
121 } 121 }
122 return _json; 122 return _json;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 safeSearchAnnotation = new SafeSearchAnnotation.fromJson(_json["safeSearch Annotation"]); 188 safeSearchAnnotation = new SafeSearchAnnotation.fromJson(_json["safeSearch Annotation"]);
189 } 189 }
190 if (_json.containsKey("textAnnotations")) { 190 if (_json.containsKey("textAnnotations")) {
191 textAnnotations = _json["textAnnotations"].map((value) => new EntityAnnota tion.fromJson(value)).toList(); 191 textAnnotations = _json["textAnnotations"].map((value) => new EntityAnnota tion.fromJson(value)).toList();
192 } 192 }
193 if (_json.containsKey("webDetection")) { 193 if (_json.containsKey("webDetection")) {
194 webDetection = new WebDetection.fromJson(_json["webDetection"]); 194 webDetection = new WebDetection.fromJson(_json["webDetection"]);
195 } 195 }
196 } 196 }
197 197
198 core.Map toJson() { 198 core.Map<core.String, core.Object> toJson() {
199 var _json = new core.Map(); 199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
200 if (cropHintsAnnotation != null) { 200 if (cropHintsAnnotation != null) {
201 _json["cropHintsAnnotation"] = (cropHintsAnnotation).toJson(); 201 _json["cropHintsAnnotation"] = (cropHintsAnnotation).toJson();
202 } 202 }
203 if (error != null) { 203 if (error != null) {
204 _json["error"] = (error).toJson(); 204 _json["error"] = (error).toJson();
205 } 205 }
206 if (faceAnnotations != null) { 206 if (faceAnnotations != null) {
207 _json["faceAnnotations"] = faceAnnotations.map((value) => (value).toJson() ).toList(); 207 _json["faceAnnotations"] = faceAnnotations.map((value) => (value).toJson() ).toList();
208 } 208 }
209 if (fullTextAnnotation != null) { 209 if (fullTextAnnotation != null) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 core.List<AnnotateImageRequest> requests; 242 core.List<AnnotateImageRequest> requests;
243 243
244 BatchAnnotateImagesRequest(); 244 BatchAnnotateImagesRequest();
245 245
246 BatchAnnotateImagesRequest.fromJson(core.Map _json) { 246 BatchAnnotateImagesRequest.fromJson(core.Map _json) {
247 if (_json.containsKey("requests")) { 247 if (_json.containsKey("requests")) {
248 requests = _json["requests"].map((value) => new AnnotateImageRequest.fromJ son(value)).toList(); 248 requests = _json["requests"].map((value) => new AnnotateImageRequest.fromJ son(value)).toList();
249 } 249 }
250 } 250 }
251 251
252 core.Map toJson() { 252 core.Map<core.String, core.Object> toJson() {
253 var _json = new core.Map(); 253 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
254 if (requests != null) { 254 if (requests != null) {
255 _json["requests"] = requests.map((value) => (value).toJson()).toList(); 255 _json["requests"] = requests.map((value) => (value).toJson()).toList();
256 } 256 }
257 return _json; 257 return _json;
258 } 258 }
259 } 259 }
260 260
261 /** Response to a batch image annotation request. */ 261 /** Response to a batch image annotation request. */
262 class BatchAnnotateImagesResponse { 262 class BatchAnnotateImagesResponse {
263 /** Individual responses to image annotation requests within the batch. */ 263 /** Individual responses to image annotation requests within the batch. */
264 core.List<AnnotateImageResponse> responses; 264 core.List<AnnotateImageResponse> responses;
265 265
266 BatchAnnotateImagesResponse(); 266 BatchAnnotateImagesResponse();
267 267
268 BatchAnnotateImagesResponse.fromJson(core.Map _json) { 268 BatchAnnotateImagesResponse.fromJson(core.Map _json) {
269 if (_json.containsKey("responses")) { 269 if (_json.containsKey("responses")) {
270 responses = _json["responses"].map((value) => new AnnotateImageResponse.fr omJson(value)).toList(); 270 responses = _json["responses"].map((value) => new AnnotateImageResponse.fr omJson(value)).toList();
271 } 271 }
272 } 272 }
273 273
274 core.Map toJson() { 274 core.Map<core.String, core.Object> toJson() {
275 var _json = new core.Map(); 275 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
276 if (responses != null) { 276 if (responses != null) {
277 _json["responses"] = responses.map((value) => (value).toJson()).toList(); 277 _json["responses"] = responses.map((value) => (value).toJson()).toList();
278 } 278 }
279 return _json; 279 return _json;
280 } 280 }
281 } 281 }
282 282
283 /** Logical element on the page. */ 283 /** Logical element on the page. */
284 class Block { 284 class Block {
285 /** 285 /**
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]); 326 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]);
327 } 327 }
328 if (_json.containsKey("paragraphs")) { 328 if (_json.containsKey("paragraphs")) {
329 paragraphs = _json["paragraphs"].map((value) => new Paragraph.fromJson(val ue)).toList(); 329 paragraphs = _json["paragraphs"].map((value) => new Paragraph.fromJson(val ue)).toList();
330 } 330 }
331 if (_json.containsKey("property")) { 331 if (_json.containsKey("property")) {
332 property = new TextProperty.fromJson(_json["property"]); 332 property = new TextProperty.fromJson(_json["property"]);
333 } 333 }
334 } 334 }
335 335
336 core.Map toJson() { 336 core.Map<core.String, core.Object> toJson() {
337 var _json = new core.Map(); 337 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
338 if (blockType != null) { 338 if (blockType != null) {
339 _json["blockType"] = blockType; 339 _json["blockType"] = blockType;
340 } 340 }
341 if (boundingBox != null) { 341 if (boundingBox != null) {
342 _json["boundingBox"] = (boundingBox).toJson(); 342 _json["boundingBox"] = (boundingBox).toJson();
343 } 343 }
344 if (paragraphs != null) { 344 if (paragraphs != null) {
345 _json["paragraphs"] = paragraphs.map((value) => (value).toJson()).toList() ; 345 _json["paragraphs"] = paragraphs.map((value) => (value).toJson()).toList() ;
346 } 346 }
347 if (property != null) { 347 if (property != null) {
348 _json["property"] = (property).toJson(); 348 _json["property"] = (property).toJson();
349 } 349 }
350 return _json; 350 return _json;
351 } 351 }
352 } 352 }
353 353
354 /** A bounding polygon for the detected image annotation. */ 354 /** A bounding polygon for the detected image annotation. */
355 class BoundingPoly { 355 class BoundingPoly {
356 /** The bounding polygon vertices. */ 356 /** The bounding polygon vertices. */
357 core.List<Vertex> vertices; 357 core.List<Vertex> vertices;
358 358
359 BoundingPoly(); 359 BoundingPoly();
360 360
361 BoundingPoly.fromJson(core.Map _json) { 361 BoundingPoly.fromJson(core.Map _json) {
362 if (_json.containsKey("vertices")) { 362 if (_json.containsKey("vertices")) {
363 vertices = _json["vertices"].map((value) => new Vertex.fromJson(value)).to List(); 363 vertices = _json["vertices"].map((value) => new Vertex.fromJson(value)).to List();
364 } 364 }
365 } 365 }
366 366
367 core.Map toJson() { 367 core.Map<core.String, core.Object> toJson() {
368 var _json = new core.Map(); 368 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
369 if (vertices != null) { 369 if (vertices != null) {
370 _json["vertices"] = vertices.map((value) => (value).toJson()).toList(); 370 _json["vertices"] = vertices.map((value) => (value).toJson()).toList();
371 } 371 }
372 return _json; 372 return _json;
373 } 373 }
374 } 374 }
375 375
376 /** 376 /**
377 * Represents a color in the RGBA color space. This representation is designed 377 * Represents a color in the RGBA color space. This representation is designed
378 * for simplicity of conversion to/from color representations in various 378 * for simplicity of conversion to/from color representations in various
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 blue = _json["blue"]; 521 blue = _json["blue"];
522 } 522 }
523 if (_json.containsKey("green")) { 523 if (_json.containsKey("green")) {
524 green = _json["green"]; 524 green = _json["green"];
525 } 525 }
526 if (_json.containsKey("red")) { 526 if (_json.containsKey("red")) {
527 red = _json["red"]; 527 red = _json["red"];
528 } 528 }
529 } 529 }
530 530
531 core.Map toJson() { 531 core.Map<core.String, core.Object> toJson() {
532 var _json = new core.Map(); 532 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
533 if (alpha != null) { 533 if (alpha != null) {
534 _json["alpha"] = alpha; 534 _json["alpha"] = alpha;
535 } 535 }
536 if (blue != null) { 536 if (blue != null) {
537 _json["blue"] = blue; 537 _json["blue"] = blue;
538 } 538 }
539 if (green != null) { 539 if (green != null) {
540 _json["green"] = green; 540 _json["green"] = green;
541 } 541 }
542 if (red != null) { 542 if (red != null) {
(...skipping 25 matching lines...) Expand all
568 color = new Color.fromJson(_json["color"]); 568 color = new Color.fromJson(_json["color"]);
569 } 569 }
570 if (_json.containsKey("pixelFraction")) { 570 if (_json.containsKey("pixelFraction")) {
571 pixelFraction = _json["pixelFraction"]; 571 pixelFraction = _json["pixelFraction"];
572 } 572 }
573 if (_json.containsKey("score")) { 573 if (_json.containsKey("score")) {
574 score = _json["score"]; 574 score = _json["score"];
575 } 575 }
576 } 576 }
577 577
578 core.Map toJson() { 578 core.Map<core.String, core.Object> toJson() {
579 var _json = new core.Map(); 579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
580 if (color != null) { 580 if (color != null) {
581 _json["color"] = (color).toJson(); 581 _json["color"] = (color).toJson();
582 } 582 }
583 if (pixelFraction != null) { 583 if (pixelFraction != null) {
584 _json["pixelFraction"] = pixelFraction; 584 _json["pixelFraction"] = pixelFraction;
585 } 585 }
586 if (score != null) { 586 if (score != null) {
587 _json["score"] = score; 587 _json["score"] = score;
588 } 588 }
589 return _json; 589 return _json;
(...skipping 24 matching lines...) Expand all
614 boundingPoly = new BoundingPoly.fromJson(_json["boundingPoly"]); 614 boundingPoly = new BoundingPoly.fromJson(_json["boundingPoly"]);
615 } 615 }
616 if (_json.containsKey("confidence")) { 616 if (_json.containsKey("confidence")) {
617 confidence = _json["confidence"]; 617 confidence = _json["confidence"];
618 } 618 }
619 if (_json.containsKey("importanceFraction")) { 619 if (_json.containsKey("importanceFraction")) {
620 importanceFraction = _json["importanceFraction"]; 620 importanceFraction = _json["importanceFraction"];
621 } 621 }
622 } 622 }
623 623
624 core.Map toJson() { 624 core.Map<core.String, core.Object> toJson() {
625 var _json = new core.Map(); 625 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
626 if (boundingPoly != null) { 626 if (boundingPoly != null) {
627 _json["boundingPoly"] = (boundingPoly).toJson(); 627 _json["boundingPoly"] = (boundingPoly).toJson();
628 } 628 }
629 if (confidence != null) { 629 if (confidence != null) {
630 _json["confidence"] = confidence; 630 _json["confidence"] = confidence;
631 } 631 }
632 if (importanceFraction != null) { 632 if (importanceFraction != null) {
633 _json["importanceFraction"] = importanceFraction; 633 _json["importanceFraction"] = importanceFraction;
634 } 634 }
635 return _json; 635 return _json;
636 } 636 }
637 } 637 }
638 638
639 /** 639 /**
640 * Set of crop hints that are used to generate new crops when serving images. 640 * Set of crop hints that are used to generate new crops when serving images.
641 */ 641 */
642 class CropHintsAnnotation { 642 class CropHintsAnnotation {
643 /** Crop hint results. */ 643 /** Crop hint results. */
644 core.List<CropHint> cropHints; 644 core.List<CropHint> cropHints;
645 645
646 CropHintsAnnotation(); 646 CropHintsAnnotation();
647 647
648 CropHintsAnnotation.fromJson(core.Map _json) { 648 CropHintsAnnotation.fromJson(core.Map _json) {
649 if (_json.containsKey("cropHints")) { 649 if (_json.containsKey("cropHints")) {
650 cropHints = _json["cropHints"].map((value) => new CropHint.fromJson(value) ).toList(); 650 cropHints = _json["cropHints"].map((value) => new CropHint.fromJson(value) ).toList();
651 } 651 }
652 } 652 }
653 653
654 core.Map toJson() { 654 core.Map<core.String, core.Object> toJson() {
655 var _json = new core.Map(); 655 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
656 if (cropHints != null) { 656 if (cropHints != null) {
657 _json["cropHints"] = cropHints.map((value) => (value).toJson()).toList(); 657 _json["cropHints"] = cropHints.map((value) => (value).toJson()).toList();
658 } 658 }
659 return _json; 659 return _json;
660 } 660 }
661 } 661 }
662 662
663 /** Parameters for crop hints annotation request. */ 663 /** Parameters for crop hints annotation request. */
664 class CropHintsParams { 664 class CropHintsParams {
665 /** 665 /**
666 * Aspect ratios in floats, representing the ratio of the width to the height 666 * Aspect ratios in floats, representing the ratio of the width to the height
667 * of the image. For example, if the desired aspect ratio is 4/3, the 667 * of the image. For example, if the desired aspect ratio is 4/3, the
668 * corresponding float value should be 1.33333. If not specified, the 668 * corresponding float value should be 1.33333. If not specified, the
669 * best possible crop is returned. The number of provided aspect ratios is 669 * best possible crop is returned. The number of provided aspect ratios is
670 * limited to a maximum of 16; any aspect ratios provided after the 16th are 670 * limited to a maximum of 16; any aspect ratios provided after the 16th are
671 * ignored. 671 * ignored.
672 */ 672 */
673 core.List<core.double> aspectRatios; 673 core.List<core.double> aspectRatios;
674 674
675 CropHintsParams(); 675 CropHintsParams();
676 676
677 CropHintsParams.fromJson(core.Map _json) { 677 CropHintsParams.fromJson(core.Map _json) {
678 if (_json.containsKey("aspectRatios")) { 678 if (_json.containsKey("aspectRatios")) {
679 aspectRatios = _json["aspectRatios"]; 679 aspectRatios = _json["aspectRatios"];
680 } 680 }
681 } 681 }
682 682
683 core.Map toJson() { 683 core.Map<core.String, core.Object> toJson() {
684 var _json = new core.Map(); 684 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
685 if (aspectRatios != null) { 685 if (aspectRatios != null) {
686 _json["aspectRatios"] = aspectRatios; 686 _json["aspectRatios"] = aspectRatios;
687 } 687 }
688 return _json; 688 return _json;
689 } 689 }
690 } 690 }
691 691
692 /** Detected start or end of a structural component. */ 692 /** Detected start or end of a structural component. */
693 class DetectedBreak { 693 class DetectedBreak {
694 /** True if break prepends the element. */ 694 /** True if break prepends the element. */
(...skipping 16 matching lines...) Expand all
711 711
712 DetectedBreak.fromJson(core.Map _json) { 712 DetectedBreak.fromJson(core.Map _json) {
713 if (_json.containsKey("isPrefix")) { 713 if (_json.containsKey("isPrefix")) {
714 isPrefix = _json["isPrefix"]; 714 isPrefix = _json["isPrefix"];
715 } 715 }
716 if (_json.containsKey("type")) { 716 if (_json.containsKey("type")) {
717 type = _json["type"]; 717 type = _json["type"];
718 } 718 }
719 } 719 }
720 720
721 core.Map toJson() { 721 core.Map<core.String, core.Object> toJson() {
722 var _json = new core.Map(); 722 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
723 if (isPrefix != null) { 723 if (isPrefix != null) {
724 _json["isPrefix"] = isPrefix; 724 _json["isPrefix"] = isPrefix;
725 } 725 }
726 if (type != null) { 726 if (type != null) {
727 _json["type"] = type; 727 _json["type"] = type;
728 } 728 }
729 return _json; 729 return _json;
730 } 730 }
731 } 731 }
732 732
(...skipping 12 matching lines...) Expand all
745 745
746 DetectedLanguage.fromJson(core.Map _json) { 746 DetectedLanguage.fromJson(core.Map _json) {
747 if (_json.containsKey("confidence")) { 747 if (_json.containsKey("confidence")) {
748 confidence = _json["confidence"]; 748 confidence = _json["confidence"];
749 } 749 }
750 if (_json.containsKey("languageCode")) { 750 if (_json.containsKey("languageCode")) {
751 languageCode = _json["languageCode"]; 751 languageCode = _json["languageCode"];
752 } 752 }
753 } 753 }
754 754
755 core.Map toJson() { 755 core.Map<core.String, core.Object> toJson() {
756 var _json = new core.Map(); 756 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
757 if (confidence != null) { 757 if (confidence != null) {
758 _json["confidence"] = confidence; 758 _json["confidence"] = confidence;
759 } 759 }
760 if (languageCode != null) { 760 if (languageCode != null) {
761 _json["languageCode"] = languageCode; 761 _json["languageCode"] = languageCode;
762 } 762 }
763 return _json; 763 return _json;
764 } 764 }
765 } 765 }
766 766
767 /** Set of dominant colors and their corresponding scores. */ 767 /** Set of dominant colors and their corresponding scores. */
768 class DominantColorsAnnotation { 768 class DominantColorsAnnotation {
769 /** RGB color values with their score and pixel fraction. */ 769 /** RGB color values with their score and pixel fraction. */
770 core.List<ColorInfo> colors; 770 core.List<ColorInfo> colors;
771 771
772 DominantColorsAnnotation(); 772 DominantColorsAnnotation();
773 773
774 DominantColorsAnnotation.fromJson(core.Map _json) { 774 DominantColorsAnnotation.fromJson(core.Map _json) {
775 if (_json.containsKey("colors")) { 775 if (_json.containsKey("colors")) {
776 colors = _json["colors"].map((value) => new ColorInfo.fromJson(value)).toL ist(); 776 colors = _json["colors"].map((value) => new ColorInfo.fromJson(value)).toL ist();
777 } 777 }
778 } 778 }
779 779
780 core.Map toJson() { 780 core.Map<core.String, core.Object> toJson() {
781 var _json = new core.Map(); 781 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
782 if (colors != null) { 782 if (colors != null) {
783 _json["colors"] = colors.map((value) => (value).toJson()).toList(); 783 _json["colors"] = colors.map((value) => (value).toJson()).toList();
784 } 784 }
785 return _json; 785 return _json;
786 } 786 }
787 } 787 }
788 788
789 /** Set of detected entity features. */ 789 /** Set of detected entity features. */
790 class EntityAnnotation { 790 class EntityAnnotation {
791 /** 791 /**
792 * Image region to which this entity belongs. Currently not produced 792 * Image region to which this entity belongs. Not produced
793 * for `LABEL_DETECTION` features. For `TEXT_DETECTION` (OCR), `boundingPoly`s 793 * for `LABEL_DETECTION` features.
794 * are produced for the entire text detected in an image region, followed by
795 * `boundingPoly`s for each word within the detected text.
796 */ 794 */
797 BoundingPoly boundingPoly; 795 BoundingPoly boundingPoly;
798 /** 796 /**
799 * The accuracy of the entity detection in an image. 797 * The accuracy of the entity detection in an image.
800 * For example, for an image in which the "Eiffel Tower" entity is detected, 798 * For example, for an image in which the "Eiffel Tower" entity is detected,
801 * this field represents the confidence that there is a tower in the query 799 * this field represents the confidence that there is a tower in the query
802 * image. Range [0, 1]. 800 * image. Range [0, 1].
803 */ 801 */
804 core.double confidence; 802 core.double confidence;
805 /** Entity textual description, expressed in its `locale` language. */ 803 /** Entity textual description, expressed in its `locale` language. */
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 properties = _json["properties"].map((value) => new Property.fromJson(valu e)).toList(); 862 properties = _json["properties"].map((value) => new Property.fromJson(valu e)).toList();
865 } 863 }
866 if (_json.containsKey("score")) { 864 if (_json.containsKey("score")) {
867 score = _json["score"]; 865 score = _json["score"];
868 } 866 }
869 if (_json.containsKey("topicality")) { 867 if (_json.containsKey("topicality")) {
870 topicality = _json["topicality"]; 868 topicality = _json["topicality"];
871 } 869 }
872 } 870 }
873 871
874 core.Map toJson() { 872 core.Map<core.String, core.Object> toJson() {
875 var _json = new core.Map(); 873 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
876 if (boundingPoly != null) { 874 if (boundingPoly != null) {
877 _json["boundingPoly"] = (boundingPoly).toJson(); 875 _json["boundingPoly"] = (boundingPoly).toJson();
878 } 876 }
879 if (confidence != null) { 877 if (confidence != null) {
880 _json["confidence"] = confidence; 878 _json["confidence"] = confidence;
881 } 879 }
882 if (description != null) { 880 if (description != null) {
883 _json["description"] = description; 881 _json["description"] = description;
884 } 882 }
885 if (locale != null) { 883 if (locale != null) {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 surpriseLikelihood = _json["surpriseLikelihood"]; 1095 surpriseLikelihood = _json["surpriseLikelihood"];
1098 } 1096 }
1099 if (_json.containsKey("tiltAngle")) { 1097 if (_json.containsKey("tiltAngle")) {
1100 tiltAngle = _json["tiltAngle"]; 1098 tiltAngle = _json["tiltAngle"];
1101 } 1099 }
1102 if (_json.containsKey("underExposedLikelihood")) { 1100 if (_json.containsKey("underExposedLikelihood")) {
1103 underExposedLikelihood = _json["underExposedLikelihood"]; 1101 underExposedLikelihood = _json["underExposedLikelihood"];
1104 } 1102 }
1105 } 1103 }
1106 1104
1107 core.Map toJson() { 1105 core.Map<core.String, core.Object> toJson() {
1108 var _json = new core.Map(); 1106 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1109 if (angerLikelihood != null) { 1107 if (angerLikelihood != null) {
1110 _json["angerLikelihood"] = angerLikelihood; 1108 _json["angerLikelihood"] = angerLikelihood;
1111 } 1109 }
1112 if (blurredLikelihood != null) { 1110 if (blurredLikelihood != null) {
1113 _json["blurredLikelihood"] = blurredLikelihood; 1111 _json["blurredLikelihood"] = blurredLikelihood;
1114 } 1112 }
1115 if (boundingPoly != null) { 1113 if (boundingPoly != null) {
1116 _json["boundingPoly"] = (boundingPoly).toJson(); 1114 _json["boundingPoly"] = (boundingPoly).toJson();
1117 } 1115 }
1118 if (detectionConfidence != null) { 1116 if (detectionConfidence != null) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 1187
1190 Feature.fromJson(core.Map _json) { 1188 Feature.fromJson(core.Map _json) {
1191 if (_json.containsKey("maxResults")) { 1189 if (_json.containsKey("maxResults")) {
1192 maxResults = _json["maxResults"]; 1190 maxResults = _json["maxResults"];
1193 } 1191 }
1194 if (_json.containsKey("type")) { 1192 if (_json.containsKey("type")) {
1195 type = _json["type"]; 1193 type = _json["type"];
1196 } 1194 }
1197 } 1195 }
1198 1196
1199 core.Map toJson() { 1197 core.Map<core.String, core.Object> toJson() {
1200 var _json = new core.Map(); 1198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1201 if (maxResults != null) { 1199 if (maxResults != null) {
1202 _json["maxResults"] = maxResults; 1200 _json["maxResults"] = maxResults;
1203 } 1201 }
1204 if (type != null) { 1202 if (type != null) {
1205 _json["type"] = type; 1203 _json["type"] = type;
1206 } 1204 }
1207 return _json; 1205 return _json;
1208 } 1206 }
1209 } 1207 }
1210 1208
(...skipping 23 matching lines...) Expand all
1234 1232
1235 Image.fromJson(core.Map _json) { 1233 Image.fromJson(core.Map _json) {
1236 if (_json.containsKey("content")) { 1234 if (_json.containsKey("content")) {
1237 content = _json["content"]; 1235 content = _json["content"];
1238 } 1236 }
1239 if (_json.containsKey("source")) { 1237 if (_json.containsKey("source")) {
1240 source = new ImageSource.fromJson(_json["source"]); 1238 source = new ImageSource.fromJson(_json["source"]);
1241 } 1239 }
1242 } 1240 }
1243 1241
1244 core.Map toJson() { 1242 core.Map<core.String, core.Object> toJson() {
1245 var _json = new core.Map(); 1243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1246 if (content != null) { 1244 if (content != null) {
1247 _json["content"] = content; 1245 _json["content"] = content;
1248 } 1246 }
1249 if (source != null) { 1247 if (source != null) {
1250 _json["source"] = (source).toJson(); 1248 _json["source"] = (source).toJson();
1251 } 1249 }
1252 return _json; 1250 return _json;
1253 } 1251 }
1254 } 1252 }
1255 1253
(...skipping 22 matching lines...) Expand all
1278 cropHintsParams = new CropHintsParams.fromJson(_json["cropHintsParams"]); 1276 cropHintsParams = new CropHintsParams.fromJson(_json["cropHintsParams"]);
1279 } 1277 }
1280 if (_json.containsKey("languageHints")) { 1278 if (_json.containsKey("languageHints")) {
1281 languageHints = _json["languageHints"]; 1279 languageHints = _json["languageHints"];
1282 } 1280 }
1283 if (_json.containsKey("latLongRect")) { 1281 if (_json.containsKey("latLongRect")) {
1284 latLongRect = new LatLongRect.fromJson(_json["latLongRect"]); 1282 latLongRect = new LatLongRect.fromJson(_json["latLongRect"]);
1285 } 1283 }
1286 } 1284 }
1287 1285
1288 core.Map toJson() { 1286 core.Map<core.String, core.Object> toJson() {
1289 var _json = new core.Map(); 1287 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1290 if (cropHintsParams != null) { 1288 if (cropHintsParams != null) {
1291 _json["cropHintsParams"] = (cropHintsParams).toJson(); 1289 _json["cropHintsParams"] = (cropHintsParams).toJson();
1292 } 1290 }
1293 if (languageHints != null) { 1291 if (languageHints != null) {
1294 _json["languageHints"] = languageHints; 1292 _json["languageHints"] = languageHints;
1295 } 1293 }
1296 if (latLongRect != null) { 1294 if (latLongRect != null) {
1297 _json["latLongRect"] = (latLongRect).toJson(); 1295 _json["latLongRect"] = (latLongRect).toJson();
1298 } 1296 }
1299 return _json; 1297 return _json;
1300 } 1298 }
1301 } 1299 }
1302 1300
1303 /** Stores image properties, such as dominant colors. */ 1301 /** Stores image properties, such as dominant colors. */
1304 class ImageProperties { 1302 class ImageProperties {
1305 /** If present, dominant colors completed successfully. */ 1303 /** If present, dominant colors completed successfully. */
1306 DominantColorsAnnotation dominantColors; 1304 DominantColorsAnnotation dominantColors;
1307 1305
1308 ImageProperties(); 1306 ImageProperties();
1309 1307
1310 ImageProperties.fromJson(core.Map _json) { 1308 ImageProperties.fromJson(core.Map _json) {
1311 if (_json.containsKey("dominantColors")) { 1309 if (_json.containsKey("dominantColors")) {
1312 dominantColors = new DominantColorsAnnotation.fromJson(_json["dominantColo rs"]); 1310 dominantColors = new DominantColorsAnnotation.fromJson(_json["dominantColo rs"]);
1313 } 1311 }
1314 } 1312 }
1315 1313
1316 core.Map toJson() { 1314 core.Map<core.String, core.Object> toJson() {
1317 var _json = new core.Map(); 1315 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1318 if (dominantColors != null) { 1316 if (dominantColors != null) {
1319 _json["dominantColors"] = (dominantColors).toJson(); 1317 _json["dominantColors"] = (dominantColors).toJson();
1320 } 1318 }
1321 return _json; 1319 return _json;
1322 } 1320 }
1323 } 1321 }
1324 1322
1325 /** External image source (Google Cloud Storage image location). */ 1323 /** External image source (Google Cloud Storage image location). */
1326 class ImageSource { 1324 class ImageSource {
1327 /** 1325 /**
(...skipping 23 matching lines...) Expand all
1351 1349
1352 ImageSource.fromJson(core.Map _json) { 1350 ImageSource.fromJson(core.Map _json) {
1353 if (_json.containsKey("gcsImageUri")) { 1351 if (_json.containsKey("gcsImageUri")) {
1354 gcsImageUri = _json["gcsImageUri"]; 1352 gcsImageUri = _json["gcsImageUri"];
1355 } 1353 }
1356 if (_json.containsKey("imageUri")) { 1354 if (_json.containsKey("imageUri")) {
1357 imageUri = _json["imageUri"]; 1355 imageUri = _json["imageUri"];
1358 } 1356 }
1359 } 1357 }
1360 1358
1361 core.Map toJson() { 1359 core.Map<core.String, core.Object> toJson() {
1362 var _json = new core.Map(); 1360 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1363 if (gcsImageUri != null) { 1361 if (gcsImageUri != null) {
1364 _json["gcsImageUri"] = gcsImageUri; 1362 _json["gcsImageUri"] = gcsImageUri;
1365 } 1363 }
1366 if (imageUri != null) { 1364 if (imageUri != null) {
1367 _json["imageUri"] = imageUri; 1365 _json["imageUri"] = imageUri;
1368 } 1366 }
1369 return _json; 1367 return _json;
1370 } 1368 }
1371 } 1369 }
1372 1370
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 1424
1427 Landmark.fromJson(core.Map _json) { 1425 Landmark.fromJson(core.Map _json) {
1428 if (_json.containsKey("position")) { 1426 if (_json.containsKey("position")) {
1429 position = new Position.fromJson(_json["position"]); 1427 position = new Position.fromJson(_json["position"]);
1430 } 1428 }
1431 if (_json.containsKey("type")) { 1429 if (_json.containsKey("type")) {
1432 type = _json["type"]; 1430 type = _json["type"];
1433 } 1431 }
1434 } 1432 }
1435 1433
1436 core.Map toJson() { 1434 core.Map<core.String, core.Object> toJson() {
1437 var _json = new core.Map(); 1435 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1438 if (position != null) { 1436 if (position != null) {
1439 _json["position"] = (position).toJson(); 1437 _json["position"] = (position).toJson();
1440 } 1438 }
1441 if (type != null) { 1439 if (type != null) {
1442 _json["type"] = type; 1440 _json["type"] = type;
1443 } 1441 }
1444 return _json; 1442 return _json;
1445 } 1443 }
1446 } 1444 }
1447 1445
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 1494
1497 LatLng.fromJson(core.Map _json) { 1495 LatLng.fromJson(core.Map _json) {
1498 if (_json.containsKey("latitude")) { 1496 if (_json.containsKey("latitude")) {
1499 latitude = _json["latitude"]; 1497 latitude = _json["latitude"];
1500 } 1498 }
1501 if (_json.containsKey("longitude")) { 1499 if (_json.containsKey("longitude")) {
1502 longitude = _json["longitude"]; 1500 longitude = _json["longitude"];
1503 } 1501 }
1504 } 1502 }
1505 1503
1506 core.Map toJson() { 1504 core.Map<core.String, core.Object> toJson() {
1507 var _json = new core.Map(); 1505 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1508 if (latitude != null) { 1506 if (latitude != null) {
1509 _json["latitude"] = latitude; 1507 _json["latitude"] = latitude;
1510 } 1508 }
1511 if (longitude != null) { 1509 if (longitude != null) {
1512 _json["longitude"] = longitude; 1510 _json["longitude"] = longitude;
1513 } 1511 }
1514 return _json; 1512 return _json;
1515 } 1513 }
1516 } 1514 }
1517 1515
1518 /** Rectangle determined by min and max `LatLng` pairs. */ 1516 /** Rectangle determined by min and max `LatLng` pairs. */
1519 class LatLongRect { 1517 class LatLongRect {
1520 /** Max lat/long pair. */ 1518 /** Max lat/long pair. */
1521 LatLng maxLatLng; 1519 LatLng maxLatLng;
1522 /** Min lat/long pair. */ 1520 /** Min lat/long pair. */
1523 LatLng minLatLng; 1521 LatLng minLatLng;
1524 1522
1525 LatLongRect(); 1523 LatLongRect();
1526 1524
1527 LatLongRect.fromJson(core.Map _json) { 1525 LatLongRect.fromJson(core.Map _json) {
1528 if (_json.containsKey("maxLatLng")) { 1526 if (_json.containsKey("maxLatLng")) {
1529 maxLatLng = new LatLng.fromJson(_json["maxLatLng"]); 1527 maxLatLng = new LatLng.fromJson(_json["maxLatLng"]);
1530 } 1528 }
1531 if (_json.containsKey("minLatLng")) { 1529 if (_json.containsKey("minLatLng")) {
1532 minLatLng = new LatLng.fromJson(_json["minLatLng"]); 1530 minLatLng = new LatLng.fromJson(_json["minLatLng"]);
1533 } 1531 }
1534 } 1532 }
1535 1533
1536 core.Map toJson() { 1534 core.Map<core.String, core.Object> toJson() {
1537 var _json = new core.Map(); 1535 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1538 if (maxLatLng != null) { 1536 if (maxLatLng != null) {
1539 _json["maxLatLng"] = (maxLatLng).toJson(); 1537 _json["maxLatLng"] = (maxLatLng).toJson();
1540 } 1538 }
1541 if (minLatLng != null) { 1539 if (minLatLng != null) {
1542 _json["minLatLng"] = (minLatLng).toJson(); 1540 _json["minLatLng"] = (minLatLng).toJson();
1543 } 1541 }
1544 return _json; 1542 return _json;
1545 } 1543 }
1546 } 1544 }
1547 1545
1548 /** Detected entity location information. */ 1546 /** Detected entity location information. */
1549 class LocationInfo { 1547 class LocationInfo {
1550 /** lat/long location coordinates. */ 1548 /** lat/long location coordinates. */
1551 LatLng latLng; 1549 LatLng latLng;
1552 1550
1553 LocationInfo(); 1551 LocationInfo();
1554 1552
1555 LocationInfo.fromJson(core.Map _json) { 1553 LocationInfo.fromJson(core.Map _json) {
1556 if (_json.containsKey("latLng")) { 1554 if (_json.containsKey("latLng")) {
1557 latLng = new LatLng.fromJson(_json["latLng"]); 1555 latLng = new LatLng.fromJson(_json["latLng"]);
1558 } 1556 }
1559 } 1557 }
1560 1558
1561 core.Map toJson() { 1559 core.Map<core.String, core.Object> toJson() {
1562 var _json = new core.Map(); 1560 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1563 if (latLng != null) { 1561 if (latLng != null) {
1564 _json["latLng"] = (latLng).toJson(); 1562 _json["latLng"] = (latLng).toJson();
1565 } 1563 }
1566 return _json; 1564 return _json;
1567 } 1565 }
1568 } 1566 }
1569 1567
1570 /** Detected page from OCR. */ 1568 /** Detected page from OCR. */
1571 class Page { 1569 class Page {
1572 /** List of blocks of text, images etc on this page. */ 1570 /** List of blocks of text, images etc on this page. */
(...skipping 15 matching lines...) Expand all
1588 height = _json["height"]; 1586 height = _json["height"];
1589 } 1587 }
1590 if (_json.containsKey("property")) { 1588 if (_json.containsKey("property")) {
1591 property = new TextProperty.fromJson(_json["property"]); 1589 property = new TextProperty.fromJson(_json["property"]);
1592 } 1590 }
1593 if (_json.containsKey("width")) { 1591 if (_json.containsKey("width")) {
1594 width = _json["width"]; 1592 width = _json["width"];
1595 } 1593 }
1596 } 1594 }
1597 1595
1598 core.Map toJson() { 1596 core.Map<core.String, core.Object> toJson() {
1599 var _json = new core.Map(); 1597 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1600 if (blocks != null) { 1598 if (blocks != null) {
1601 _json["blocks"] = blocks.map((value) => (value).toJson()).toList(); 1599 _json["blocks"] = blocks.map((value) => (value).toJson()).toList();
1602 } 1600 }
1603 if (height != null) { 1601 if (height != null) {
1604 _json["height"] = height; 1602 _json["height"] = height;
1605 } 1603 }
1606 if (property != null) { 1604 if (property != null) {
1607 _json["property"] = (property).toJson(); 1605 _json["property"] = (property).toJson();
1608 } 1606 }
1609 if (width != null) { 1607 if (width != null) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]); 1643 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]);
1646 } 1644 }
1647 if (_json.containsKey("property")) { 1645 if (_json.containsKey("property")) {
1648 property = new TextProperty.fromJson(_json["property"]); 1646 property = new TextProperty.fromJson(_json["property"]);
1649 } 1647 }
1650 if (_json.containsKey("words")) { 1648 if (_json.containsKey("words")) {
1651 words = _json["words"].map((value) => new Word.fromJson(value)).toList(); 1649 words = _json["words"].map((value) => new Word.fromJson(value)).toList();
1652 } 1650 }
1653 } 1651 }
1654 1652
1655 core.Map toJson() { 1653 core.Map<core.String, core.Object> toJson() {
1656 var _json = new core.Map(); 1654 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1657 if (boundingBox != null) { 1655 if (boundingBox != null) {
1658 _json["boundingBox"] = (boundingBox).toJson(); 1656 _json["boundingBox"] = (boundingBox).toJson();
1659 } 1657 }
1660 if (property != null) { 1658 if (property != null) {
1661 _json["property"] = (property).toJson(); 1659 _json["property"] = (property).toJson();
1662 } 1660 }
1663 if (words != null) { 1661 if (words != null) {
1664 _json["words"] = words.map((value) => (value).toJson()).toList(); 1662 _json["words"] = words.map((value) => (value).toJson()).toList();
1665 } 1663 }
1666 return _json; 1664 return _json;
(...skipping 20 matching lines...) Expand all
1687 x = _json["x"]; 1685 x = _json["x"];
1688 } 1686 }
1689 if (_json.containsKey("y")) { 1687 if (_json.containsKey("y")) {
1690 y = _json["y"]; 1688 y = _json["y"];
1691 } 1689 }
1692 if (_json.containsKey("z")) { 1690 if (_json.containsKey("z")) {
1693 z = _json["z"]; 1691 z = _json["z"];
1694 } 1692 }
1695 } 1693 }
1696 1694
1697 core.Map toJson() { 1695 core.Map<core.String, core.Object> toJson() {
1698 var _json = new core.Map(); 1696 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1699 if (x != null) { 1697 if (x != null) {
1700 _json["x"] = x; 1698 _json["x"] = x;
1701 } 1699 }
1702 if (y != null) { 1700 if (y != null) {
1703 _json["y"] = y; 1701 _json["y"] = y;
1704 } 1702 }
1705 if (z != null) { 1703 if (z != null) {
1706 _json["z"] = z; 1704 _json["z"] = z;
1707 } 1705 }
1708 return _json; 1706 return _json;
(...skipping 16 matching lines...) Expand all
1725 name = _json["name"]; 1723 name = _json["name"];
1726 } 1724 }
1727 if (_json.containsKey("uint64Value")) { 1725 if (_json.containsKey("uint64Value")) {
1728 uint64Value = _json["uint64Value"]; 1726 uint64Value = _json["uint64Value"];
1729 } 1727 }
1730 if (_json.containsKey("value")) { 1728 if (_json.containsKey("value")) {
1731 value = _json["value"]; 1729 value = _json["value"];
1732 } 1730 }
1733 } 1731 }
1734 1732
1735 core.Map toJson() { 1733 core.Map<core.String, core.Object> toJson() {
1736 var _json = new core.Map(); 1734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1737 if (name != null) { 1735 if (name != null) {
1738 _json["name"] = name; 1736 _json["name"] = name;
1739 } 1737 }
1740 if (uint64Value != null) { 1738 if (uint64Value != null) {
1741 _json["uint64Value"] = uint64Value; 1739 _json["uint64Value"] = uint64Value;
1742 } 1740 }
1743 if (value != null) { 1741 if (value != null) {
1744 _json["value"] = value; 1742 _json["value"] = value;
1745 } 1743 }
1746 return _json; 1744 return _json;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 medical = _json["medical"]; 1824 medical = _json["medical"];
1827 } 1825 }
1828 if (_json.containsKey("spoof")) { 1826 if (_json.containsKey("spoof")) {
1829 spoof = _json["spoof"]; 1827 spoof = _json["spoof"];
1830 } 1828 }
1831 if (_json.containsKey("violence")) { 1829 if (_json.containsKey("violence")) {
1832 violence = _json["violence"]; 1830 violence = _json["violence"];
1833 } 1831 }
1834 } 1832 }
1835 1833
1836 core.Map toJson() { 1834 core.Map<core.String, core.Object> toJson() {
1837 var _json = new core.Map(); 1835 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1838 if (adult != null) { 1836 if (adult != null) {
1839 _json["adult"] = adult; 1837 _json["adult"] = adult;
1840 } 1838 }
1841 if (medical != null) { 1839 if (medical != null) {
1842 _json["medical"] = medical; 1840 _json["medical"] = medical;
1843 } 1841 }
1844 if (spoof != null) { 1842 if (spoof != null) {
1845 _json["spoof"] = spoof; 1843 _json["spoof"] = spoof;
1846 } 1844 }
1847 if (violence != null) { 1845 if (violence != null) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 code = _json["code"]; 1930 code = _json["code"];
1933 } 1931 }
1934 if (_json.containsKey("details")) { 1932 if (_json.containsKey("details")) {
1935 details = _json["details"]; 1933 details = _json["details"];
1936 } 1934 }
1937 if (_json.containsKey("message")) { 1935 if (_json.containsKey("message")) {
1938 message = _json["message"]; 1936 message = _json["message"];
1939 } 1937 }
1940 } 1938 }
1941 1939
1942 core.Map toJson() { 1940 core.Map<core.String, core.Object> toJson() {
1943 var _json = new core.Map(); 1941 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1944 if (code != null) { 1942 if (code != null) {
1945 _json["code"] = code; 1943 _json["code"] = code;
1946 } 1944 }
1947 if (details != null) { 1945 if (details != null) {
1948 _json["details"] = details; 1946 _json["details"] = details;
1949 } 1947 }
1950 if (message != null) { 1948 if (message != null) {
1951 _json["message"] = message; 1949 _json["message"] = message;
1952 } 1950 }
1953 return _json; 1951 return _json;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]); 1984 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]);
1987 } 1985 }
1988 if (_json.containsKey("property")) { 1986 if (_json.containsKey("property")) {
1989 property = new TextProperty.fromJson(_json["property"]); 1987 property = new TextProperty.fromJson(_json["property"]);
1990 } 1988 }
1991 if (_json.containsKey("text")) { 1989 if (_json.containsKey("text")) {
1992 text = _json["text"]; 1990 text = _json["text"];
1993 } 1991 }
1994 } 1992 }
1995 1993
1996 core.Map toJson() { 1994 core.Map<core.String, core.Object> toJson() {
1997 var _json = new core.Map(); 1995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1998 if (boundingBox != null) { 1996 if (boundingBox != null) {
1999 _json["boundingBox"] = (boundingBox).toJson(); 1997 _json["boundingBox"] = (boundingBox).toJson();
2000 } 1998 }
2001 if (property != null) { 1999 if (property != null) {
2002 _json["property"] = (property).toJson(); 2000 _json["property"] = (property).toJson();
2003 } 2001 }
2004 if (text != null) { 2002 if (text != null) {
2005 _json["text"] = text; 2003 _json["text"] = text;
2006 } 2004 }
2007 return _json; 2005 return _json;
(...skipping 19 matching lines...) Expand all
2027 2025
2028 TextAnnotation.fromJson(core.Map _json) { 2026 TextAnnotation.fromJson(core.Map _json) {
2029 if (_json.containsKey("pages")) { 2027 if (_json.containsKey("pages")) {
2030 pages = _json["pages"].map((value) => new Page.fromJson(value)).toList(); 2028 pages = _json["pages"].map((value) => new Page.fromJson(value)).toList();
2031 } 2029 }
2032 if (_json.containsKey("text")) { 2030 if (_json.containsKey("text")) {
2033 text = _json["text"]; 2031 text = _json["text"];
2034 } 2032 }
2035 } 2033 }
2036 2034
2037 core.Map toJson() { 2035 core.Map<core.String, core.Object> toJson() {
2038 var _json = new core.Map(); 2036 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2039 if (pages != null) { 2037 if (pages != null) {
2040 _json["pages"] = pages.map((value) => (value).toJson()).toList(); 2038 _json["pages"] = pages.map((value) => (value).toJson()).toList();
2041 } 2039 }
2042 if (text != null) { 2040 if (text != null) {
2043 _json["text"] = text; 2041 _json["text"] = text;
2044 } 2042 }
2045 return _json; 2043 return _json;
2046 } 2044 }
2047 } 2045 }
2048 2046
2049 /** Additional information detected on the structural component. */ 2047 /** Additional information detected on the structural component. */
2050 class TextProperty { 2048 class TextProperty {
2051 /** Detected start or end of a text segment. */ 2049 /** Detected start or end of a text segment. */
2052 DetectedBreak detectedBreak; 2050 DetectedBreak detectedBreak;
2053 /** A list of detected languages together with confidence. */ 2051 /** A list of detected languages together with confidence. */
2054 core.List<DetectedLanguage> detectedLanguages; 2052 core.List<DetectedLanguage> detectedLanguages;
2055 2053
2056 TextProperty(); 2054 TextProperty();
2057 2055
2058 TextProperty.fromJson(core.Map _json) { 2056 TextProperty.fromJson(core.Map _json) {
2059 if (_json.containsKey("detectedBreak")) { 2057 if (_json.containsKey("detectedBreak")) {
2060 detectedBreak = new DetectedBreak.fromJson(_json["detectedBreak"]); 2058 detectedBreak = new DetectedBreak.fromJson(_json["detectedBreak"]);
2061 } 2059 }
2062 if (_json.containsKey("detectedLanguages")) { 2060 if (_json.containsKey("detectedLanguages")) {
2063 detectedLanguages = _json["detectedLanguages"].map((value) => new Detected Language.fromJson(value)).toList(); 2061 detectedLanguages = _json["detectedLanguages"].map((value) => new Detected Language.fromJson(value)).toList();
2064 } 2062 }
2065 } 2063 }
2066 2064
2067 core.Map toJson() { 2065 core.Map<core.String, core.Object> toJson() {
2068 var _json = new core.Map(); 2066 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2069 if (detectedBreak != null) { 2067 if (detectedBreak != null) {
2070 _json["detectedBreak"] = (detectedBreak).toJson(); 2068 _json["detectedBreak"] = (detectedBreak).toJson();
2071 } 2069 }
2072 if (detectedLanguages != null) { 2070 if (detectedLanguages != null) {
2073 _json["detectedLanguages"] = detectedLanguages.map((value) => (value).toJs on()).toList(); 2071 _json["detectedLanguages"] = detectedLanguages.map((value) => (value).toJs on()).toList();
2074 } 2072 }
2075 return _json; 2073 return _json;
2076 } 2074 }
2077 } 2075 }
2078 2076
(...skipping 11 matching lines...) Expand all
2090 2088
2091 Vertex.fromJson(core.Map _json) { 2089 Vertex.fromJson(core.Map _json) {
2092 if (_json.containsKey("x")) { 2090 if (_json.containsKey("x")) {
2093 x = _json["x"]; 2091 x = _json["x"];
2094 } 2092 }
2095 if (_json.containsKey("y")) { 2093 if (_json.containsKey("y")) {
2096 y = _json["y"]; 2094 y = _json["y"];
2097 } 2095 }
2098 } 2096 }
2099 2097
2100 core.Map toJson() { 2098 core.Map<core.String, core.Object> toJson() {
2101 var _json = new core.Map(); 2099 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2102 if (x != null) { 2100 if (x != null) {
2103 _json["x"] = x; 2101 _json["x"] = x;
2104 } 2102 }
2105 if (y != null) { 2103 if (y != null) {
2106 _json["y"] = y; 2104 _json["y"] = y;
2107 } 2105 }
2108 return _json; 2106 return _json;
2109 } 2107 }
2110 } 2108 }
2111 2109
(...skipping 30 matching lines...) Expand all
2142 partialMatchingImages = _json["partialMatchingImages"].map((value) => new WebImage.fromJson(value)).toList(); 2140 partialMatchingImages = _json["partialMatchingImages"].map((value) => new WebImage.fromJson(value)).toList();
2143 } 2141 }
2144 if (_json.containsKey("visuallySimilarImages")) { 2142 if (_json.containsKey("visuallySimilarImages")) {
2145 visuallySimilarImages = _json["visuallySimilarImages"].map((value) => new WebImage.fromJson(value)).toList(); 2143 visuallySimilarImages = _json["visuallySimilarImages"].map((value) => new WebImage.fromJson(value)).toList();
2146 } 2144 }
2147 if (_json.containsKey("webEntities")) { 2145 if (_json.containsKey("webEntities")) {
2148 webEntities = _json["webEntities"].map((value) => new WebEntity.fromJson(v alue)).toList(); 2146 webEntities = _json["webEntities"].map((value) => new WebEntity.fromJson(v alue)).toList();
2149 } 2147 }
2150 } 2148 }
2151 2149
2152 core.Map toJson() { 2150 core.Map<core.String, core.Object> toJson() {
2153 var _json = new core.Map(); 2151 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2154 if (fullMatchingImages != null) { 2152 if (fullMatchingImages != null) {
2155 _json["fullMatchingImages"] = fullMatchingImages.map((value) => (value).to Json()).toList(); 2153 _json["fullMatchingImages"] = fullMatchingImages.map((value) => (value).to Json()).toList();
2156 } 2154 }
2157 if (pagesWithMatchingImages != null) { 2155 if (pagesWithMatchingImages != null) {
2158 _json["pagesWithMatchingImages"] = pagesWithMatchingImages.map((value) => (value).toJson()).toList(); 2156 _json["pagesWithMatchingImages"] = pagesWithMatchingImages.map((value) => (value).toJson()).toList();
2159 } 2157 }
2160 if (partialMatchingImages != null) { 2158 if (partialMatchingImages != null) {
2161 _json["partialMatchingImages"] = partialMatchingImages.map((value) => (val ue).toJson()).toList(); 2159 _json["partialMatchingImages"] = partialMatchingImages.map((value) => (val ue).toJson()).toList();
2162 } 2160 }
2163 if (visuallySimilarImages != null) { 2161 if (visuallySimilarImages != null) {
(...skipping 25 matching lines...) Expand all
2189 description = _json["description"]; 2187 description = _json["description"];
2190 } 2188 }
2191 if (_json.containsKey("entityId")) { 2189 if (_json.containsKey("entityId")) {
2192 entityId = _json["entityId"]; 2190 entityId = _json["entityId"];
2193 } 2191 }
2194 if (_json.containsKey("score")) { 2192 if (_json.containsKey("score")) {
2195 score = _json["score"]; 2193 score = _json["score"];
2196 } 2194 }
2197 } 2195 }
2198 2196
2199 core.Map toJson() { 2197 core.Map<core.String, core.Object> toJson() {
2200 var _json = new core.Map(); 2198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2201 if (description != null) { 2199 if (description != null) {
2202 _json["description"] = description; 2200 _json["description"] = description;
2203 } 2201 }
2204 if (entityId != null) { 2202 if (entityId != null) {
2205 _json["entityId"] = entityId; 2203 _json["entityId"] = entityId;
2206 } 2204 }
2207 if (score != null) { 2205 if (score != null) {
2208 _json["score"] = score; 2206 _json["score"] = score;
2209 } 2207 }
2210 return _json; 2208 return _json;
(...skipping 14 matching lines...) Expand all
2225 2223
2226 WebImage.fromJson(core.Map _json) { 2224 WebImage.fromJson(core.Map _json) {
2227 if (_json.containsKey("score")) { 2225 if (_json.containsKey("score")) {
2228 score = _json["score"]; 2226 score = _json["score"];
2229 } 2227 }
2230 if (_json.containsKey("url")) { 2228 if (_json.containsKey("url")) {
2231 url = _json["url"]; 2229 url = _json["url"];
2232 } 2230 }
2233 } 2231 }
2234 2232
2235 core.Map toJson() { 2233 core.Map<core.String, core.Object> toJson() {
2236 var _json = new core.Map(); 2234 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2237 if (score != null) { 2235 if (score != null) {
2238 _json["score"] = score; 2236 _json["score"] = score;
2239 } 2237 }
2240 if (url != null) { 2238 if (url != null) {
2241 _json["url"] = url; 2239 _json["url"] = url;
2242 } 2240 }
2243 return _json; 2241 return _json;
2244 } 2242 }
2245 } 2243 }
2246 2244
(...skipping 11 matching lines...) Expand all
2258 2256
2259 WebPage.fromJson(core.Map _json) { 2257 WebPage.fromJson(core.Map _json) {
2260 if (_json.containsKey("score")) { 2258 if (_json.containsKey("score")) {
2261 score = _json["score"]; 2259 score = _json["score"];
2262 } 2260 }
2263 if (_json.containsKey("url")) { 2261 if (_json.containsKey("url")) {
2264 url = _json["url"]; 2262 url = _json["url"];
2265 } 2263 }
2266 } 2264 }
2267 2265
2268 core.Map toJson() { 2266 core.Map<core.String, core.Object> toJson() {
2269 var _json = new core.Map(); 2267 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2270 if (score != null) { 2268 if (score != null) {
2271 _json["score"] = score; 2269 _json["score"] = score;
2272 } 2270 }
2273 if (url != null) { 2271 if (url != null) {
2274 _json["url"] = url; 2272 _json["url"] = url;
2275 } 2273 }
2276 return _json; 2274 return _json;
2277 } 2275 }
2278 } 2276 }
2279 2277
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2312 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]); 2310 boundingBox = new BoundingPoly.fromJson(_json["boundingBox"]);
2313 } 2311 }
2314 if (_json.containsKey("property")) { 2312 if (_json.containsKey("property")) {
2315 property = new TextProperty.fromJson(_json["property"]); 2313 property = new TextProperty.fromJson(_json["property"]);
2316 } 2314 }
2317 if (_json.containsKey("symbols")) { 2315 if (_json.containsKey("symbols")) {
2318 symbols = _json["symbols"].map((value) => new Symbol.fromJson(value)).toLi st(); 2316 symbols = _json["symbols"].map((value) => new Symbol.fromJson(value)).toLi st();
2319 } 2317 }
2320 } 2318 }
2321 2319
2322 core.Map toJson() { 2320 core.Map<core.String, core.Object> toJson() {
2323 var _json = new core.Map(); 2321 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2324 if (boundingBox != null) { 2322 if (boundingBox != null) {
2325 _json["boundingBox"] = (boundingBox).toJson(); 2323 _json["boundingBox"] = (boundingBox).toJson();
2326 } 2324 }
2327 if (property != null) { 2325 if (property != null) {
2328 _json["property"] = (property).toJson(); 2326 _json["property"] = (property).toJson();
2329 } 2327 }
2330 if (symbols != null) { 2328 if (symbols != null) {
2331 _json["symbols"] = symbols.map((value) => (value).toJson()).toList(); 2329 _json["symbols"] = symbols.map((value) => (value).toJson()).toList();
2332 } 2330 }
2333 return _json; 2331 return _json;
2334 } 2332 }
2335 } 2333 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/urlshortener/v1.dart ('k') | generated/googleapis/lib/webfonts/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698