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.people.v1; | 3 library googleapis.people.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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 /** | 180 /** |
181 * Provides a list of the authenticated user's contacts merged with any | 181 * Provides a list of the authenticated user's contacts merged with any |
182 * linked profiles. | 182 * linked profiles. |
183 * | 183 * |
184 * Request parameters: | 184 * Request parameters: |
185 * | 185 * |
186 * [resourceName] - The resource name to return connections for. Only | 186 * [resourceName] - The resource name to return connections for. Only |
187 * `people/me` is valid. | 187 * `people/me` is valid. |
188 * Value must have pattern "^people/[^/]+$". | 188 * Value must have pattern "^people/[^/]+$". |
189 * | 189 * |
| 190 * [requestMask_includeField] - Required. Comma-separated list of person |
| 191 * fields to be included in the |
| 192 * response. Each path should start with `person.`: for example, |
| 193 * `person.names` or `person.photos`. |
| 194 * |
| 195 * [pageSize] - The number of connections to include in the response. Valid |
| 196 * values are |
| 197 * between 1 and 2000, inclusive. Defaults to 100. |
| 198 * |
190 * [syncToken] - A sync token, returned by a previous call to | 199 * [syncToken] - A sync token, returned by a previous call to |
191 * `people.connections.list`. | 200 * `people.connections.list`. |
192 * Only resources changed since the sync token was created will be returned. | 201 * Only resources changed since the sync token was created will be returned. |
193 * | 202 * |
194 * [sortOrder] - The order in which the connections should be sorted. Defaults | 203 * [sortOrder] - The order in which the connections should be sorted. Defaults |
195 * to | 204 * to |
196 * `LAST_MODIFIED_ASCENDING`. | 205 * `LAST_MODIFIED_ASCENDING`. |
197 * Possible string values are: | 206 * Possible string values are: |
198 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. | 207 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. |
199 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. | 208 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. |
200 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. | 209 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. |
201 * | 210 * |
202 * [requestSyncToken] - Whether the response should include a sync token, | 211 * [requestSyncToken] - Whether the response should include a sync token, |
203 * which can be used to get | 212 * which can be used to get |
204 * all changes since the last request. | 213 * all changes since the last request. |
205 * | 214 * |
206 * [pageToken] - The token of the page to be returned. | 215 * [pageToken] - The token of the page to be returned. |
207 * | 216 * |
208 * [pageSize] - The number of connections to include in the response. Valid | |
209 * values are | |
210 * between 1 and 2000, inclusive. Defaults to 100. | |
211 * | |
212 * [requestMask_includeField] - Required. Comma-separated list of person | |
213 * fields to be included in the | |
214 * response. Each path should start with `person.`: for example, | |
215 * `person.names` or `person.photos`. | |
216 * | |
217 * Completes with a [ListConnectionsResponse]. | 217 * Completes with a [ListConnectionsResponse]. |
218 * | 218 * |
219 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 219 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
220 * error. | 220 * error. |
221 * | 221 * |
222 * If the used [http.Client] completes with an error when making a REST call, | 222 * If the used [http.Client] completes with an error when making a REST call, |
223 * this method will complete with the same error. | 223 * this method will complete with the same error. |
224 */ | 224 */ |
225 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.Str
ing syncToken, core.String sortOrder, core.bool requestSyncToken, core.String pa
geToken, core.int pageSize, core.String requestMask_includeField}) { | 225 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.Str
ing requestMask_includeField, core.int pageSize, core.String syncToken, core.Str
ing sortOrder, core.bool requestSyncToken, core.String pageToken}) { |
226 var _url = null; | 226 var _url = null; |
227 var _queryParams = new core.Map(); | 227 var _queryParams = new core.Map(); |
228 var _uploadMedia = null; | 228 var _uploadMedia = null; |
229 var _uploadOptions = null; | 229 var _uploadOptions = null; |
230 var _downloadOptions = commons.DownloadOptions.Metadata; | 230 var _downloadOptions = commons.DownloadOptions.Metadata; |
231 var _body = null; | 231 var _body = null; |
232 | 232 |
233 if (resourceName == null) { | 233 if (resourceName == null) { |
234 throw new core.ArgumentError("Parameter resourceName is required."); | 234 throw new core.ArgumentError("Parameter resourceName is required."); |
235 } | 235 } |
| 236 if (requestMask_includeField != null) { |
| 237 _queryParams["requestMask.includeField"] = [requestMask_includeField]; |
| 238 } |
| 239 if (pageSize != null) { |
| 240 _queryParams["pageSize"] = ["${pageSize}"]; |
| 241 } |
236 if (syncToken != null) { | 242 if (syncToken != null) { |
237 _queryParams["syncToken"] = [syncToken]; | 243 _queryParams["syncToken"] = [syncToken]; |
238 } | 244 } |
239 if (sortOrder != null) { | 245 if (sortOrder != null) { |
240 _queryParams["sortOrder"] = [sortOrder]; | 246 _queryParams["sortOrder"] = [sortOrder]; |
241 } | 247 } |
242 if (requestSyncToken != null) { | 248 if (requestSyncToken != null) { |
243 _queryParams["requestSyncToken"] = ["${requestSyncToken}"]; | 249 _queryParams["requestSyncToken"] = ["${requestSyncToken}"]; |
244 } | 250 } |
245 if (pageToken != null) { | 251 if (pageToken != null) { |
246 _queryParams["pageToken"] = [pageToken]; | 252 _queryParams["pageToken"] = [pageToken]; |
247 } | 253 } |
248 if (pageSize != null) { | |
249 _queryParams["pageSize"] = ["${pageSize}"]; | |
250 } | |
251 if (requestMask_includeField != null) { | |
252 _queryParams["requestMask.includeField"] = [requestMask_includeField]; | |
253 } | |
254 | 254 |
255 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co
nnections'; | 255 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co
nnections'; |
256 | 256 |
257 var _response = _requester.request(_url, | 257 var _response = _requester.request(_url, |
258 "GET", | 258 "GET", |
259 body: _body, | 259 body: _body, |
260 queryParams: _queryParams, | 260 queryParams: _queryParams, |
261 uploadOptions: _uploadOptions, | 261 uploadOptions: _uploadOptions, |
262 uploadMedia: _uploadMedia, | 262 uploadMedia: _uploadMedia, |
263 downloadOptions: _downloadOptions); | 263 downloadOptions: _downloadOptions); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 region = _json["region"]; | 350 region = _json["region"]; |
351 } | 351 } |
352 if (_json.containsKey("streetAddress")) { | 352 if (_json.containsKey("streetAddress")) { |
353 streetAddress = _json["streetAddress"]; | 353 streetAddress = _json["streetAddress"]; |
354 } | 354 } |
355 if (_json.containsKey("type")) { | 355 if (_json.containsKey("type")) { |
356 type = _json["type"]; | 356 type = _json["type"]; |
357 } | 357 } |
358 } | 358 } |
359 | 359 |
360 core.Map toJson() { | 360 core.Map<core.String, core.Object> toJson() { |
361 var _json = new core.Map(); | 361 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
362 if (city != null) { | 362 if (city != null) { |
363 _json["city"] = city; | 363 _json["city"] = city; |
364 } | 364 } |
365 if (country != null) { | 365 if (country != null) { |
366 _json["country"] = country; | 366 _json["country"] = country; |
367 } | 367 } |
368 if (countryCode != null) { | 368 if (countryCode != null) { |
369 _json["countryCode"] = countryCode; | 369 _json["countryCode"] = countryCode; |
370 } | 370 } |
371 if (extendedAddress != null) { | 371 if (extendedAddress != null) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 417 |
418 AgeRangeType.fromJson(core.Map _json) { | 418 AgeRangeType.fromJson(core.Map _json) { |
419 if (_json.containsKey("ageRange")) { | 419 if (_json.containsKey("ageRange")) { |
420 ageRange = _json["ageRange"]; | 420 ageRange = _json["ageRange"]; |
421 } | 421 } |
422 if (_json.containsKey("metadata")) { | 422 if (_json.containsKey("metadata")) { |
423 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 423 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
424 } | 424 } |
425 } | 425 } |
426 | 426 |
427 core.Map toJson() { | 427 core.Map<core.String, core.Object> toJson() { |
428 var _json = new core.Map(); | 428 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
429 if (ageRange != null) { | 429 if (ageRange != null) { |
430 _json["ageRange"] = ageRange; | 430 _json["ageRange"] = ageRange; |
431 } | 431 } |
432 if (metadata != null) { | 432 if (metadata != null) { |
433 _json["metadata"] = (metadata).toJson(); | 433 _json["metadata"] = (metadata).toJson(); |
434 } | 434 } |
435 return _json; | 435 return _json; |
436 } | 436 } |
437 } | 437 } |
438 | 438 |
(...skipping 19 matching lines...) Expand all Loading... |
458 contentType = _json["contentType"]; | 458 contentType = _json["contentType"]; |
459 } | 459 } |
460 if (_json.containsKey("metadata")) { | 460 if (_json.containsKey("metadata")) { |
461 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 461 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
462 } | 462 } |
463 if (_json.containsKey("value")) { | 463 if (_json.containsKey("value")) { |
464 value = _json["value"]; | 464 value = _json["value"]; |
465 } | 465 } |
466 } | 466 } |
467 | 467 |
468 core.Map toJson() { | 468 core.Map<core.String, core.Object> toJson() { |
469 var _json = new core.Map(); | 469 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
470 if (contentType != null) { | 470 if (contentType != null) { |
471 _json["contentType"] = contentType; | 471 _json["contentType"] = contentType; |
472 } | 472 } |
473 if (metadata != null) { | 473 if (metadata != null) { |
474 _json["metadata"] = (metadata).toJson(); | 474 _json["metadata"] = (metadata).toJson(); |
475 } | 475 } |
476 if (value != null) { | 476 if (value != null) { |
477 _json["value"] = value; | 477 _json["value"] = value; |
478 } | 478 } |
479 return _json; | 479 return _json; |
(...skipping 20 matching lines...) Expand all Loading... |
500 date = new Date.fromJson(_json["date"]); | 500 date = new Date.fromJson(_json["date"]); |
501 } | 501 } |
502 if (_json.containsKey("metadata")) { | 502 if (_json.containsKey("metadata")) { |
503 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 503 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
504 } | 504 } |
505 if (_json.containsKey("text")) { | 505 if (_json.containsKey("text")) { |
506 text = _json["text"]; | 506 text = _json["text"]; |
507 } | 507 } |
508 } | 508 } |
509 | 509 |
510 core.Map toJson() { | 510 core.Map<core.String, core.Object> toJson() { |
511 var _json = new core.Map(); | 511 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
512 if (date != null) { | 512 if (date != null) { |
513 _json["date"] = (date).toJson(); | 513 _json["date"] = (date).toJson(); |
514 } | 514 } |
515 if (metadata != null) { | 515 if (metadata != null) { |
516 _json["metadata"] = (metadata).toJson(); | 516 _json["metadata"] = (metadata).toJson(); |
517 } | 517 } |
518 if (text != null) { | 518 if (text != null) { |
519 _json["text"] = text; | 519 _json["text"] = text; |
520 } | 520 } |
521 return _json; | 521 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
533 | 533 |
534 BraggingRights.fromJson(core.Map _json) { | 534 BraggingRights.fromJson(core.Map _json) { |
535 if (_json.containsKey("metadata")) { | 535 if (_json.containsKey("metadata")) { |
536 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 536 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
537 } | 537 } |
538 if (_json.containsKey("value")) { | 538 if (_json.containsKey("value")) { |
539 value = _json["value"]; | 539 value = _json["value"]; |
540 } | 540 } |
541 } | 541 } |
542 | 542 |
543 core.Map toJson() { | 543 core.Map<core.String, core.Object> toJson() { |
544 var _json = new core.Map(); | 544 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
545 if (metadata != null) { | 545 if (metadata != null) { |
546 _json["metadata"] = (metadata).toJson(); | 546 _json["metadata"] = (metadata).toJson(); |
547 } | 547 } |
548 if (value != null) { | 548 if (value != null) { |
549 _json["value"] = value; | 549 _json["value"] = value; |
550 } | 550 } |
551 return _json; | 551 return _json; |
552 } | 552 } |
553 } | 553 } |
554 | 554 |
(...skipping 11 matching lines...) Expand all Loading... |
566 core.String contactGroupId; | 566 core.String contactGroupId; |
567 | 567 |
568 ContactGroupMembership(); | 568 ContactGroupMembership(); |
569 | 569 |
570 ContactGroupMembership.fromJson(core.Map _json) { | 570 ContactGroupMembership.fromJson(core.Map _json) { |
571 if (_json.containsKey("contactGroupId")) { | 571 if (_json.containsKey("contactGroupId")) { |
572 contactGroupId = _json["contactGroupId"]; | 572 contactGroupId = _json["contactGroupId"]; |
573 } | 573 } |
574 } | 574 } |
575 | 575 |
576 core.Map toJson() { | 576 core.Map<core.String, core.Object> toJson() { |
577 var _json = new core.Map(); | 577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
578 if (contactGroupId != null) { | 578 if (contactGroupId != null) { |
579 _json["contactGroupId"] = contactGroupId; | 579 _json["contactGroupId"] = contactGroupId; |
580 } | 580 } |
581 return _json; | 581 return _json; |
582 } | 582 } |
583 } | 583 } |
584 | 584 |
585 /** | 585 /** |
586 * A person's read-only cover photo. A large image shown on the person's | 586 * A person's read-only cover photo. A large image shown on the person's |
587 * profile page that represents who they are or what they care about. | 587 * profile page that represents who they are or what they care about. |
(...skipping 16 matching lines...) Expand all Loading... |
604 default_ = _json["default"]; | 604 default_ = _json["default"]; |
605 } | 605 } |
606 if (_json.containsKey("metadata")) { | 606 if (_json.containsKey("metadata")) { |
607 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 607 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
608 } | 608 } |
609 if (_json.containsKey("url")) { | 609 if (_json.containsKey("url")) { |
610 url = _json["url"]; | 610 url = _json["url"]; |
611 } | 611 } |
612 } | 612 } |
613 | 613 |
614 core.Map toJson() { | 614 core.Map<core.String, core.Object> toJson() { |
615 var _json = new core.Map(); | 615 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
616 if (default_ != null) { | 616 if (default_ != null) { |
617 _json["default"] = default_; | 617 _json["default"] = default_; |
618 } | 618 } |
619 if (metadata != null) { | 619 if (metadata != null) { |
620 _json["metadata"] = (metadata).toJson(); | 620 _json["metadata"] = (metadata).toJson(); |
621 } | 621 } |
622 if (url != null) { | 622 if (url != null) { |
623 _json["url"] = url; | 623 _json["url"] = url; |
624 } | 624 } |
625 return _json; | 625 return _json; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 day = _json["day"]; | 657 day = _json["day"]; |
658 } | 658 } |
659 if (_json.containsKey("month")) { | 659 if (_json.containsKey("month")) { |
660 month = _json["month"]; | 660 month = _json["month"]; |
661 } | 661 } |
662 if (_json.containsKey("year")) { | 662 if (_json.containsKey("year")) { |
663 year = _json["year"]; | 663 year = _json["year"]; |
664 } | 664 } |
665 } | 665 } |
666 | 666 |
667 core.Map toJson() { | 667 core.Map<core.String, core.Object> toJson() { |
668 var _json = new core.Map(); | 668 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
669 if (day != null) { | 669 if (day != null) { |
670 _json["day"] = day; | 670 _json["day"] = day; |
671 } | 671 } |
672 if (month != null) { | 672 if (month != null) { |
673 _json["month"] = month; | 673 _json["month"] = month; |
674 } | 674 } |
675 if (year != null) { | 675 if (year != null) { |
676 _json["year"] = year; | 676 _json["year"] = year; |
677 } | 677 } |
678 return _json; | 678 return _json; |
679 } | 679 } |
680 } | 680 } |
681 | 681 |
682 /** A Google Apps Domain membership. */ | 682 /** A Google Apps Domain membership. */ |
683 class DomainMembership { | 683 class DomainMembership { |
684 /** True if the person is in the viewer's Google Apps domain. */ | 684 /** True if the person is in the viewer's Google Apps domain. */ |
685 core.bool inViewerDomain; | 685 core.bool inViewerDomain; |
686 | 686 |
687 DomainMembership(); | 687 DomainMembership(); |
688 | 688 |
689 DomainMembership.fromJson(core.Map _json) { | 689 DomainMembership.fromJson(core.Map _json) { |
690 if (_json.containsKey("inViewerDomain")) { | 690 if (_json.containsKey("inViewerDomain")) { |
691 inViewerDomain = _json["inViewerDomain"]; | 691 inViewerDomain = _json["inViewerDomain"]; |
692 } | 692 } |
693 } | 693 } |
694 | 694 |
695 core.Map toJson() { | 695 core.Map<core.String, core.Object> toJson() { |
696 var _json = new core.Map(); | 696 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
697 if (inViewerDomain != null) { | 697 if (inViewerDomain != null) { |
698 _json["inViewerDomain"] = inViewerDomain; | 698 _json["inViewerDomain"] = inViewerDomain; |
699 } | 699 } |
700 return _json; | 700 return _json; |
701 } | 701 } |
702 } | 702 } |
703 | 703 |
704 /** A person's email address. */ | 704 /** A person's email address. */ |
705 class EmailAddress { | 705 class EmailAddress { |
706 /** The display name of the email. */ | 706 /** The display name of the email. */ |
(...skipping 30 matching lines...) Expand all Loading... |
737 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 737 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
738 } | 738 } |
739 if (_json.containsKey("type")) { | 739 if (_json.containsKey("type")) { |
740 type = _json["type"]; | 740 type = _json["type"]; |
741 } | 741 } |
742 if (_json.containsKey("value")) { | 742 if (_json.containsKey("value")) { |
743 value = _json["value"]; | 743 value = _json["value"]; |
744 } | 744 } |
745 } | 745 } |
746 | 746 |
747 core.Map toJson() { | 747 core.Map<core.String, core.Object> toJson() { |
748 var _json = new core.Map(); | 748 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
749 if (displayName != null) { | 749 if (displayName != null) { |
750 _json["displayName"] = displayName; | 750 _json["displayName"] = displayName; |
751 } | 751 } |
752 if (formattedType != null) { | 752 if (formattedType != null) { |
753 _json["formattedType"] = formattedType; | 753 _json["formattedType"] = formattedType; |
754 } | 754 } |
755 if (metadata != null) { | 755 if (metadata != null) { |
756 _json["metadata"] = (metadata).toJson(); | 756 _json["metadata"] = (metadata).toJson(); |
757 } | 757 } |
758 if (type != null) { | 758 if (type != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 formattedType = _json["formattedType"]; | 795 formattedType = _json["formattedType"]; |
796 } | 796 } |
797 if (_json.containsKey("metadata")) { | 797 if (_json.containsKey("metadata")) { |
798 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 798 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
799 } | 799 } |
800 if (_json.containsKey("type")) { | 800 if (_json.containsKey("type")) { |
801 type = _json["type"]; | 801 type = _json["type"]; |
802 } | 802 } |
803 } | 803 } |
804 | 804 |
805 core.Map toJson() { | 805 core.Map<core.String, core.Object> toJson() { |
806 var _json = new core.Map(); | 806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
807 if (date != null) { | 807 if (date != null) { |
808 _json["date"] = (date).toJson(); | 808 _json["date"] = (date).toJson(); |
809 } | 809 } |
810 if (formattedType != null) { | 810 if (formattedType != null) { |
811 _json["formattedType"] = formattedType; | 811 _json["formattedType"] = formattedType; |
812 } | 812 } |
813 if (metadata != null) { | 813 if (metadata != null) { |
814 _json["metadata"] = (metadata).toJson(); | 814 _json["metadata"] = (metadata).toJson(); |
815 } | 815 } |
816 if (type != null) { | 816 if (type != null) { |
(...skipping 26 matching lines...) Expand all Loading... |
843 primary = _json["primary"]; | 843 primary = _json["primary"]; |
844 } | 844 } |
845 if (_json.containsKey("source")) { | 845 if (_json.containsKey("source")) { |
846 source = new Source.fromJson(_json["source"]); | 846 source = new Source.fromJson(_json["source"]); |
847 } | 847 } |
848 if (_json.containsKey("verified")) { | 848 if (_json.containsKey("verified")) { |
849 verified = _json["verified"]; | 849 verified = _json["verified"]; |
850 } | 850 } |
851 } | 851 } |
852 | 852 |
853 core.Map toJson() { | 853 core.Map<core.String, core.Object> toJson() { |
854 var _json = new core.Map(); | 854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
855 if (primary != null) { | 855 if (primary != null) { |
856 _json["primary"] = primary; | 856 _json["primary"] = primary; |
857 } | 857 } |
858 if (source != null) { | 858 if (source != null) { |
859 _json["source"] = (source).toJson(); | 859 _json["source"] = (source).toJson(); |
860 } | 860 } |
861 if (verified != null) { | 861 if (verified != null) { |
862 _json["verified"] = verified; | 862 _json["verified"] = verified; |
863 } | 863 } |
864 return _json; | 864 return _json; |
(...skipping 28 matching lines...) Expand all Loading... |
893 formattedValue = _json["formattedValue"]; | 893 formattedValue = _json["formattedValue"]; |
894 } | 894 } |
895 if (_json.containsKey("metadata")) { | 895 if (_json.containsKey("metadata")) { |
896 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 896 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
897 } | 897 } |
898 if (_json.containsKey("value")) { | 898 if (_json.containsKey("value")) { |
899 value = _json["value"]; | 899 value = _json["value"]; |
900 } | 900 } |
901 } | 901 } |
902 | 902 |
903 core.Map toJson() { | 903 core.Map<core.String, core.Object> toJson() { |
904 var _json = new core.Map(); | 904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
905 if (formattedValue != null) { | 905 if (formattedValue != null) { |
906 _json["formattedValue"] = formattedValue; | 906 _json["formattedValue"] = formattedValue; |
907 } | 907 } |
908 if (metadata != null) { | 908 if (metadata != null) { |
909 _json["metadata"] = (metadata).toJson(); | 909 _json["metadata"] = (metadata).toJson(); |
910 } | 910 } |
911 if (value != null) { | 911 if (value != null) { |
912 _json["value"] = value; | 912 _json["value"] = value; |
913 } | 913 } |
914 return _json; | 914 return _json; |
915 } | 915 } |
916 } | 916 } |
917 | 917 |
918 class GetPeopleResponse { | 918 class GetPeopleResponse { |
919 /** The response for each requested resource name. */ | 919 /** The response for each requested resource name. */ |
920 core.List<PersonResponse> responses; | 920 core.List<PersonResponse> responses; |
921 | 921 |
922 GetPeopleResponse(); | 922 GetPeopleResponse(); |
923 | 923 |
924 GetPeopleResponse.fromJson(core.Map _json) { | 924 GetPeopleResponse.fromJson(core.Map _json) { |
925 if (_json.containsKey("responses")) { | 925 if (_json.containsKey("responses")) { |
926 responses = _json["responses"].map((value) => new PersonResponse.fromJson(
value)).toList(); | 926 responses = _json["responses"].map((value) => new PersonResponse.fromJson(
value)).toList(); |
927 } | 927 } |
928 } | 928 } |
929 | 929 |
930 core.Map toJson() { | 930 core.Map<core.String, core.Object> toJson() { |
931 var _json = new core.Map(); | 931 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
932 if (responses != null) { | 932 if (responses != null) { |
933 _json["responses"] = responses.map((value) => (value).toJson()).toList(); | 933 _json["responses"] = responses.map((value) => (value).toJson()).toList(); |
934 } | 934 } |
935 return _json; | 935 return _json; |
936 } | 936 } |
937 } | 937 } |
938 | 938 |
939 /** A person's instant messaging client. */ | 939 /** A person's instant messaging client. */ |
940 class ImClient { | 940 class ImClient { |
941 /** | 941 /** |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 protocol = _json["protocol"]; | 993 protocol = _json["protocol"]; |
994 } | 994 } |
995 if (_json.containsKey("type")) { | 995 if (_json.containsKey("type")) { |
996 type = _json["type"]; | 996 type = _json["type"]; |
997 } | 997 } |
998 if (_json.containsKey("username")) { | 998 if (_json.containsKey("username")) { |
999 username = _json["username"]; | 999 username = _json["username"]; |
1000 } | 1000 } |
1001 } | 1001 } |
1002 | 1002 |
1003 core.Map toJson() { | 1003 core.Map<core.String, core.Object> toJson() { |
1004 var _json = new core.Map(); | 1004 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1005 if (formattedProtocol != null) { | 1005 if (formattedProtocol != null) { |
1006 _json["formattedProtocol"] = formattedProtocol; | 1006 _json["formattedProtocol"] = formattedProtocol; |
1007 } | 1007 } |
1008 if (formattedType != null) { | 1008 if (formattedType != null) { |
1009 _json["formattedType"] = formattedType; | 1009 _json["formattedType"] = formattedType; |
1010 } | 1010 } |
1011 if (metadata != null) { | 1011 if (metadata != null) { |
1012 _json["metadata"] = (metadata).toJson(); | 1012 _json["metadata"] = (metadata).toJson(); |
1013 } | 1013 } |
1014 if (protocol != null) { | 1014 if (protocol != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
1035 | 1035 |
1036 Interest.fromJson(core.Map _json) { | 1036 Interest.fromJson(core.Map _json) { |
1037 if (_json.containsKey("metadata")) { | 1037 if (_json.containsKey("metadata")) { |
1038 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1038 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1039 } | 1039 } |
1040 if (_json.containsKey("value")) { | 1040 if (_json.containsKey("value")) { |
1041 value = _json["value"]; | 1041 value = _json["value"]; |
1042 } | 1042 } |
1043 } | 1043 } |
1044 | 1044 |
1045 core.Map toJson() { | 1045 core.Map<core.String, core.Object> toJson() { |
1046 var _json = new core.Map(); | 1046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1047 if (metadata != null) { | 1047 if (metadata != null) { |
1048 _json["metadata"] = (metadata).toJson(); | 1048 _json["metadata"] = (metadata).toJson(); |
1049 } | 1049 } |
1050 if (value != null) { | 1050 if (value != null) { |
1051 _json["value"] = value; | 1051 _json["value"] = value; |
1052 } | 1052 } |
1053 return _json; | 1053 return _json; |
1054 } | 1054 } |
1055 } | 1055 } |
1056 | 1056 |
(...skipping 25 matching lines...) Expand all Loading... |
1082 nextSyncToken = _json["nextSyncToken"]; | 1082 nextSyncToken = _json["nextSyncToken"]; |
1083 } | 1083 } |
1084 if (_json.containsKey("totalItems")) { | 1084 if (_json.containsKey("totalItems")) { |
1085 totalItems = _json["totalItems"]; | 1085 totalItems = _json["totalItems"]; |
1086 } | 1086 } |
1087 if (_json.containsKey("totalPeople")) { | 1087 if (_json.containsKey("totalPeople")) { |
1088 totalPeople = _json["totalPeople"]; | 1088 totalPeople = _json["totalPeople"]; |
1089 } | 1089 } |
1090 } | 1090 } |
1091 | 1091 |
1092 core.Map toJson() { | 1092 core.Map<core.String, core.Object> toJson() { |
1093 var _json = new core.Map(); | 1093 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1094 if (connections != null) { | 1094 if (connections != null) { |
1095 _json["connections"] = connections.map((value) => (value).toJson()).toList
(); | 1095 _json["connections"] = connections.map((value) => (value).toJson()).toList
(); |
1096 } | 1096 } |
1097 if (nextPageToken != null) { | 1097 if (nextPageToken != null) { |
1098 _json["nextPageToken"] = nextPageToken; | 1098 _json["nextPageToken"] = nextPageToken; |
1099 } | 1099 } |
1100 if (nextSyncToken != null) { | 1100 if (nextSyncToken != null) { |
1101 _json["nextSyncToken"] = nextSyncToken; | 1101 _json["nextSyncToken"] = nextSyncToken; |
1102 } | 1102 } |
1103 if (totalItems != null) { | 1103 if (totalItems != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
1124 | 1124 |
1125 Locale.fromJson(core.Map _json) { | 1125 Locale.fromJson(core.Map _json) { |
1126 if (_json.containsKey("metadata")) { | 1126 if (_json.containsKey("metadata")) { |
1127 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1127 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1128 } | 1128 } |
1129 if (_json.containsKey("value")) { | 1129 if (_json.containsKey("value")) { |
1130 value = _json["value"]; | 1130 value = _json["value"]; |
1131 } | 1131 } |
1132 } | 1132 } |
1133 | 1133 |
1134 core.Map toJson() { | 1134 core.Map<core.String, core.Object> toJson() { |
1135 var _json = new core.Map(); | 1135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1136 if (metadata != null) { | 1136 if (metadata != null) { |
1137 _json["metadata"] = (metadata).toJson(); | 1137 _json["metadata"] = (metadata).toJson(); |
1138 } | 1138 } |
1139 if (value != null) { | 1139 if (value != null) { |
1140 _json["value"] = value; | 1140 _json["value"] = value; |
1141 } | 1141 } |
1142 return _json; | 1142 return _json; |
1143 } | 1143 } |
1144 } | 1144 } |
1145 | 1145 |
(...skipping 13 matching lines...) Expand all Loading... |
1159 contactGroupMembership = new ContactGroupMembership.fromJson(_json["contac
tGroupMembership"]); | 1159 contactGroupMembership = new ContactGroupMembership.fromJson(_json["contac
tGroupMembership"]); |
1160 } | 1160 } |
1161 if (_json.containsKey("domainMembership")) { | 1161 if (_json.containsKey("domainMembership")) { |
1162 domainMembership = new DomainMembership.fromJson(_json["domainMembership"]
); | 1162 domainMembership = new DomainMembership.fromJson(_json["domainMembership"]
); |
1163 } | 1163 } |
1164 if (_json.containsKey("metadata")) { | 1164 if (_json.containsKey("metadata")) { |
1165 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1165 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1166 } | 1166 } |
1167 } | 1167 } |
1168 | 1168 |
1169 core.Map toJson() { | 1169 core.Map<core.String, core.Object> toJson() { |
1170 var _json = new core.Map(); | 1170 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1171 if (contactGroupMembership != null) { | 1171 if (contactGroupMembership != null) { |
1172 _json["contactGroupMembership"] = (contactGroupMembership).toJson(); | 1172 _json["contactGroupMembership"] = (contactGroupMembership).toJson(); |
1173 } | 1173 } |
1174 if (domainMembership != null) { | 1174 if (domainMembership != null) { |
1175 _json["domainMembership"] = (domainMembership).toJson(); | 1175 _json["domainMembership"] = (domainMembership).toJson(); |
1176 } | 1176 } |
1177 if (metadata != null) { | 1177 if (metadata != null) { |
1178 _json["metadata"] = (metadata).toJson(); | 1178 _json["metadata"] = (metadata).toJson(); |
1179 } | 1179 } |
1180 return _json; | 1180 return _json; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 phoneticHonorificPrefix = _json["phoneticHonorificPrefix"]; | 1259 phoneticHonorificPrefix = _json["phoneticHonorificPrefix"]; |
1260 } | 1260 } |
1261 if (_json.containsKey("phoneticHonorificSuffix")) { | 1261 if (_json.containsKey("phoneticHonorificSuffix")) { |
1262 phoneticHonorificSuffix = _json["phoneticHonorificSuffix"]; | 1262 phoneticHonorificSuffix = _json["phoneticHonorificSuffix"]; |
1263 } | 1263 } |
1264 if (_json.containsKey("phoneticMiddleName")) { | 1264 if (_json.containsKey("phoneticMiddleName")) { |
1265 phoneticMiddleName = _json["phoneticMiddleName"]; | 1265 phoneticMiddleName = _json["phoneticMiddleName"]; |
1266 } | 1266 } |
1267 } | 1267 } |
1268 | 1268 |
1269 core.Map toJson() { | 1269 core.Map<core.String, core.Object> toJson() { |
1270 var _json = new core.Map(); | 1270 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1271 if (displayName != null) { | 1271 if (displayName != null) { |
1272 _json["displayName"] = displayName; | 1272 _json["displayName"] = displayName; |
1273 } | 1273 } |
1274 if (displayNameLastFirst != null) { | 1274 if (displayNameLastFirst != null) { |
1275 _json["displayNameLastFirst"] = displayNameLastFirst; | 1275 _json["displayNameLastFirst"] = displayNameLastFirst; |
1276 } | 1276 } |
1277 if (familyName != null) { | 1277 if (familyName != null) { |
1278 _json["familyName"] = familyName; | 1278 _json["familyName"] = familyName; |
1279 } | 1279 } |
1280 if (givenName != null) { | 1280 if (givenName != null) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1341 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1342 } | 1342 } |
1343 if (_json.containsKey("type")) { | 1343 if (_json.containsKey("type")) { |
1344 type = _json["type"]; | 1344 type = _json["type"]; |
1345 } | 1345 } |
1346 if (_json.containsKey("value")) { | 1346 if (_json.containsKey("value")) { |
1347 value = _json["value"]; | 1347 value = _json["value"]; |
1348 } | 1348 } |
1349 } | 1349 } |
1350 | 1350 |
1351 core.Map toJson() { | 1351 core.Map<core.String, core.Object> toJson() { |
1352 var _json = new core.Map(); | 1352 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1353 if (metadata != null) { | 1353 if (metadata != null) { |
1354 _json["metadata"] = (metadata).toJson(); | 1354 _json["metadata"] = (metadata).toJson(); |
1355 } | 1355 } |
1356 if (type != null) { | 1356 if (type != null) { |
1357 _json["type"] = type; | 1357 _json["type"] = type; |
1358 } | 1358 } |
1359 if (value != null) { | 1359 if (value != null) { |
1360 _json["value"] = value; | 1360 _json["value"] = value; |
1361 } | 1361 } |
1362 return _json; | 1362 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
1374 | 1374 |
1375 Occupation.fromJson(core.Map _json) { | 1375 Occupation.fromJson(core.Map _json) { |
1376 if (_json.containsKey("metadata")) { | 1376 if (_json.containsKey("metadata")) { |
1377 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1377 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1378 } | 1378 } |
1379 if (_json.containsKey("value")) { | 1379 if (_json.containsKey("value")) { |
1380 value = _json["value"]; | 1380 value = _json["value"]; |
1381 } | 1381 } |
1382 } | 1382 } |
1383 | 1383 |
1384 core.Map toJson() { | 1384 core.Map<core.String, core.Object> toJson() { |
1385 var _json = new core.Map(); | 1385 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1386 if (metadata != null) { | 1386 if (metadata != null) { |
1387 _json["metadata"] = (metadata).toJson(); | 1387 _json["metadata"] = (metadata).toJson(); |
1388 } | 1388 } |
1389 if (value != null) { | 1389 if (value != null) { |
1390 _json["value"] = value; | 1390 _json["value"] = value; |
1391 } | 1391 } |
1392 return _json; | 1392 return _json; |
1393 } | 1393 } |
1394 } | 1394 } |
1395 | 1395 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 symbol = _json["symbol"]; | 1485 symbol = _json["symbol"]; |
1486 } | 1486 } |
1487 if (_json.containsKey("title")) { | 1487 if (_json.containsKey("title")) { |
1488 title = _json["title"]; | 1488 title = _json["title"]; |
1489 } | 1489 } |
1490 if (_json.containsKey("type")) { | 1490 if (_json.containsKey("type")) { |
1491 type = _json["type"]; | 1491 type = _json["type"]; |
1492 } | 1492 } |
1493 } | 1493 } |
1494 | 1494 |
1495 core.Map toJson() { | 1495 core.Map<core.String, core.Object> toJson() { |
1496 var _json = new core.Map(); | 1496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1497 if (current != null) { | 1497 if (current != null) { |
1498 _json["current"] = current; | 1498 _json["current"] = current; |
1499 } | 1499 } |
1500 if (department != null) { | 1500 if (department != null) { |
1501 _json["department"] = department; | 1501 _json["department"] = department; |
1502 } | 1502 } |
1503 if (domain != null) { | 1503 if (domain != null) { |
1504 _json["domain"] = domain; | 1504 _json["domain"] = domain; |
1505 } | 1505 } |
1506 if (endDate != null) { | 1506 if (endDate != null) { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 skills = _json["skills"].map((value) => new Skill.fromJson(value)).toList(
); | 1711 skills = _json["skills"].map((value) => new Skill.fromJson(value)).toList(
); |
1712 } | 1712 } |
1713 if (_json.containsKey("taglines")) { | 1713 if (_json.containsKey("taglines")) { |
1714 taglines = _json["taglines"].map((value) => new Tagline.fromJson(value)).t
oList(); | 1714 taglines = _json["taglines"].map((value) => new Tagline.fromJson(value)).t
oList(); |
1715 } | 1715 } |
1716 if (_json.containsKey("urls")) { | 1716 if (_json.containsKey("urls")) { |
1717 urls = _json["urls"].map((value) => new Url.fromJson(value)).toList(); | 1717 urls = _json["urls"].map((value) => new Url.fromJson(value)).toList(); |
1718 } | 1718 } |
1719 } | 1719 } |
1720 | 1720 |
1721 core.Map toJson() { | 1721 core.Map<core.String, core.Object> toJson() { |
1722 var _json = new core.Map(); | 1722 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1723 if (addresses != null) { | 1723 if (addresses != null) { |
1724 _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); | 1724 _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); |
1725 } | 1725 } |
1726 if (ageRange != null) { | 1726 if (ageRange != null) { |
1727 _json["ageRange"] = ageRange; | 1727 _json["ageRange"] = ageRange; |
1728 } | 1728 } |
1729 if (ageRanges != null) { | 1729 if (ageRanges != null) { |
1730 _json["ageRanges"] = ageRanges.map((value) => (value).toJson()).toList(); | 1730 _json["ageRanges"] = ageRanges.map((value) => (value).toJson()).toList(); |
1731 } | 1731 } |
1732 if (biographies != null) { | 1732 if (biographies != null) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1859 objectType = _json["objectType"]; | 1859 objectType = _json["objectType"]; |
1860 } | 1860 } |
1861 if (_json.containsKey("previousResourceNames")) { | 1861 if (_json.containsKey("previousResourceNames")) { |
1862 previousResourceNames = _json["previousResourceNames"]; | 1862 previousResourceNames = _json["previousResourceNames"]; |
1863 } | 1863 } |
1864 if (_json.containsKey("sources")) { | 1864 if (_json.containsKey("sources")) { |
1865 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi
st(); | 1865 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi
st(); |
1866 } | 1866 } |
1867 } | 1867 } |
1868 | 1868 |
1869 core.Map toJson() { | 1869 core.Map<core.String, core.Object> toJson() { |
1870 var _json = new core.Map(); | 1870 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1871 if (deleted != null) { | 1871 if (deleted != null) { |
1872 _json["deleted"] = deleted; | 1872 _json["deleted"] = deleted; |
1873 } | 1873 } |
1874 if (linkedPeopleResourceNames != null) { | 1874 if (linkedPeopleResourceNames != null) { |
1875 _json["linkedPeopleResourceNames"] = linkedPeopleResourceNames; | 1875 _json["linkedPeopleResourceNames"] = linkedPeopleResourceNames; |
1876 } | 1876 } |
1877 if (objectType != null) { | 1877 if (objectType != null) { |
1878 _json["objectType"] = objectType; | 1878 _json["objectType"] = objectType; |
1879 } | 1879 } |
1880 if (previousResourceNames != null) { | 1880 if (previousResourceNames != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 person = new Person.fromJson(_json["person"]); | 1919 person = new Person.fromJson(_json["person"]); |
1920 } | 1920 } |
1921 if (_json.containsKey("requestedResourceName")) { | 1921 if (_json.containsKey("requestedResourceName")) { |
1922 requestedResourceName = _json["requestedResourceName"]; | 1922 requestedResourceName = _json["requestedResourceName"]; |
1923 } | 1923 } |
1924 if (_json.containsKey("status")) { | 1924 if (_json.containsKey("status")) { |
1925 status = new Status.fromJson(_json["status"]); | 1925 status = new Status.fromJson(_json["status"]); |
1926 } | 1926 } |
1927 } | 1927 } |
1928 | 1928 |
1929 core.Map toJson() { | 1929 core.Map<core.String, core.Object> toJson() { |
1930 var _json = new core.Map(); | 1930 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1931 if (httpStatusCode != null) { | 1931 if (httpStatusCode != null) { |
1932 _json["httpStatusCode"] = httpStatusCode; | 1932 _json["httpStatusCode"] = httpStatusCode; |
1933 } | 1933 } |
1934 if (person != null) { | 1934 if (person != null) { |
1935 _json["person"] = (person).toJson(); | 1935 _json["person"] = (person).toJson(); |
1936 } | 1936 } |
1937 if (requestedResourceName != null) { | 1937 if (requestedResourceName != null) { |
1938 _json["requestedResourceName"] = requestedResourceName; | 1938 _json["requestedResourceName"] = requestedResourceName; |
1939 } | 1939 } |
1940 if (status != null) { | 1940 if (status != null) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1993 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1993 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1994 } | 1994 } |
1995 if (_json.containsKey("type")) { | 1995 if (_json.containsKey("type")) { |
1996 type = _json["type"]; | 1996 type = _json["type"]; |
1997 } | 1997 } |
1998 if (_json.containsKey("value")) { | 1998 if (_json.containsKey("value")) { |
1999 value = _json["value"]; | 1999 value = _json["value"]; |
2000 } | 2000 } |
2001 } | 2001 } |
2002 | 2002 |
2003 core.Map toJson() { | 2003 core.Map<core.String, core.Object> toJson() { |
2004 var _json = new core.Map(); | 2004 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2005 if (canonicalForm != null) { | 2005 if (canonicalForm != null) { |
2006 _json["canonicalForm"] = canonicalForm; | 2006 _json["canonicalForm"] = canonicalForm; |
2007 } | 2007 } |
2008 if (formattedType != null) { | 2008 if (formattedType != null) { |
2009 _json["formattedType"] = formattedType; | 2009 _json["formattedType"] = formattedType; |
2010 } | 2010 } |
2011 if (metadata != null) { | 2011 if (metadata != null) { |
2012 _json["metadata"] = (metadata).toJson(); | 2012 _json["metadata"] = (metadata).toJson(); |
2013 } | 2013 } |
2014 if (type != null) { | 2014 if (type != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
2039 | 2039 |
2040 Photo.fromJson(core.Map _json) { | 2040 Photo.fromJson(core.Map _json) { |
2041 if (_json.containsKey("metadata")) { | 2041 if (_json.containsKey("metadata")) { |
2042 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2042 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2043 } | 2043 } |
2044 if (_json.containsKey("url")) { | 2044 if (_json.containsKey("url")) { |
2045 url = _json["url"]; | 2045 url = _json["url"]; |
2046 } | 2046 } |
2047 } | 2047 } |
2048 | 2048 |
2049 core.Map toJson() { | 2049 core.Map<core.String, core.Object> toJson() { |
2050 var _json = new core.Map(); | 2050 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2051 if (metadata != null) { | 2051 if (metadata != null) { |
2052 _json["metadata"] = (metadata).toJson(); | 2052 _json["metadata"] = (metadata).toJson(); |
2053 } | 2053 } |
2054 if (url != null) { | 2054 if (url != null) { |
2055 _json["url"] = url; | 2055 _json["url"] = url; |
2056 } | 2056 } |
2057 return _json; | 2057 return _json; |
2058 } | 2058 } |
2059 } | 2059 } |
2060 | 2060 |
2061 /** The read-only metadata about a profile. */ | 2061 /** The read-only metadata about a profile. */ |
2062 class ProfileMetadata { | 2062 class ProfileMetadata { |
2063 /** | 2063 /** |
2064 * The profile object type. | 2064 * The profile object type. |
2065 * Possible string values are: | 2065 * Possible string values are: |
2066 * - "OBJECT_TYPE_UNSPECIFIED" : Unspecified. | 2066 * - "OBJECT_TYPE_UNSPECIFIED" : Unspecified. |
2067 * - "PERSON" : Person. | 2067 * - "PERSON" : Person. |
2068 * - "PAGE" : [Google+ Page.](http://www.google.com/+/brands/) | 2068 * - "PAGE" : [Google+ Page.](http://www.google.com/+/brands/) |
2069 */ | 2069 */ |
2070 core.String objectType; | 2070 core.String objectType; |
2071 | 2071 |
2072 ProfileMetadata(); | 2072 ProfileMetadata(); |
2073 | 2073 |
2074 ProfileMetadata.fromJson(core.Map _json) { | 2074 ProfileMetadata.fromJson(core.Map _json) { |
2075 if (_json.containsKey("objectType")) { | 2075 if (_json.containsKey("objectType")) { |
2076 objectType = _json["objectType"]; | 2076 objectType = _json["objectType"]; |
2077 } | 2077 } |
2078 } | 2078 } |
2079 | 2079 |
2080 core.Map toJson() { | 2080 core.Map<core.String, core.Object> toJson() { |
2081 var _json = new core.Map(); | 2081 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2082 if (objectType != null) { | 2082 if (objectType != null) { |
2083 _json["objectType"] = objectType; | 2083 _json["objectType"] = objectType; |
2084 } | 2084 } |
2085 return _json; | 2085 return _json; |
2086 } | 2086 } |
2087 } | 2087 } |
2088 | 2088 |
2089 /** A person's relation to another person. */ | 2089 /** A person's relation to another person. */ |
2090 class Relation { | 2090 class Relation { |
2091 /** | 2091 /** |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2129 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2129 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2130 } | 2130 } |
2131 if (_json.containsKey("person")) { | 2131 if (_json.containsKey("person")) { |
2132 person = _json["person"]; | 2132 person = _json["person"]; |
2133 } | 2133 } |
2134 if (_json.containsKey("type")) { | 2134 if (_json.containsKey("type")) { |
2135 type = _json["type"]; | 2135 type = _json["type"]; |
2136 } | 2136 } |
2137 } | 2137 } |
2138 | 2138 |
2139 core.Map toJson() { | 2139 core.Map<core.String, core.Object> toJson() { |
2140 var _json = new core.Map(); | 2140 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2141 if (formattedType != null) { | 2141 if (formattedType != null) { |
2142 _json["formattedType"] = formattedType; | 2142 _json["formattedType"] = formattedType; |
2143 } | 2143 } |
2144 if (metadata != null) { | 2144 if (metadata != null) { |
2145 _json["metadata"] = (metadata).toJson(); | 2145 _json["metadata"] = (metadata).toJson(); |
2146 } | 2146 } |
2147 if (person != null) { | 2147 if (person != null) { |
2148 _json["person"] = person; | 2148 _json["person"] = person; |
2149 } | 2149 } |
2150 if (type != null) { | 2150 if (type != null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 formattedValue = _json["formattedValue"]; | 2183 formattedValue = _json["formattedValue"]; |
2184 } | 2184 } |
2185 if (_json.containsKey("metadata")) { | 2185 if (_json.containsKey("metadata")) { |
2186 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2186 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2187 } | 2187 } |
2188 if (_json.containsKey("value")) { | 2188 if (_json.containsKey("value")) { |
2189 value = _json["value"]; | 2189 value = _json["value"]; |
2190 } | 2190 } |
2191 } | 2191 } |
2192 | 2192 |
2193 core.Map toJson() { | 2193 core.Map<core.String, core.Object> toJson() { |
2194 var _json = new core.Map(); | 2194 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2195 if (formattedValue != null) { | 2195 if (formattedValue != null) { |
2196 _json["formattedValue"] = formattedValue; | 2196 _json["formattedValue"] = formattedValue; |
2197 } | 2197 } |
2198 if (metadata != null) { | 2198 if (metadata != null) { |
2199 _json["metadata"] = (metadata).toJson(); | 2199 _json["metadata"] = (metadata).toJson(); |
2200 } | 2200 } |
2201 if (value != null) { | 2201 if (value != null) { |
2202 _json["value"] = value; | 2202 _json["value"] = value; |
2203 } | 2203 } |
2204 return _json; | 2204 return _json; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2237 formattedValue = _json["formattedValue"]; | 2237 formattedValue = _json["formattedValue"]; |
2238 } | 2238 } |
2239 if (_json.containsKey("metadata")) { | 2239 if (_json.containsKey("metadata")) { |
2240 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2240 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2241 } | 2241 } |
2242 if (_json.containsKey("value")) { | 2242 if (_json.containsKey("value")) { |
2243 value = _json["value"]; | 2243 value = _json["value"]; |
2244 } | 2244 } |
2245 } | 2245 } |
2246 | 2246 |
2247 core.Map toJson() { | 2247 core.Map<core.String, core.Object> toJson() { |
2248 var _json = new core.Map(); | 2248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2249 if (formattedValue != null) { | 2249 if (formattedValue != null) { |
2250 _json["formattedValue"] = formattedValue; | 2250 _json["formattedValue"] = formattedValue; |
2251 } | 2251 } |
2252 if (metadata != null) { | 2252 if (metadata != null) { |
2253 _json["metadata"] = (metadata).toJson(); | 2253 _json["metadata"] = (metadata).toJson(); |
2254 } | 2254 } |
2255 if (value != null) { | 2255 if (value != null) { |
2256 _json["value"] = value; | 2256 _json["value"] = value; |
2257 } | 2257 } |
2258 return _json; | 2258 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
2278 current = _json["current"]; | 2278 current = _json["current"]; |
2279 } | 2279 } |
2280 if (_json.containsKey("metadata")) { | 2280 if (_json.containsKey("metadata")) { |
2281 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2281 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2282 } | 2282 } |
2283 if (_json.containsKey("value")) { | 2283 if (_json.containsKey("value")) { |
2284 value = _json["value"]; | 2284 value = _json["value"]; |
2285 } | 2285 } |
2286 } | 2286 } |
2287 | 2287 |
2288 core.Map toJson() { | 2288 core.Map<core.String, core.Object> toJson() { |
2289 var _json = new core.Map(); | 2289 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2290 if (current != null) { | 2290 if (current != null) { |
2291 _json["current"] = current; | 2291 _json["current"] = current; |
2292 } | 2292 } |
2293 if (metadata != null) { | 2293 if (metadata != null) { |
2294 _json["metadata"] = (metadata).toJson(); | 2294 _json["metadata"] = (metadata).toJson(); |
2295 } | 2295 } |
2296 if (value != null) { | 2296 if (value != null) { |
2297 _json["value"] = value; | 2297 _json["value"] = value; |
2298 } | 2298 } |
2299 return _json; | 2299 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
2311 | 2311 |
2312 Skill.fromJson(core.Map _json) { | 2312 Skill.fromJson(core.Map _json) { |
2313 if (_json.containsKey("metadata")) { | 2313 if (_json.containsKey("metadata")) { |
2314 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2314 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2315 } | 2315 } |
2316 if (_json.containsKey("value")) { | 2316 if (_json.containsKey("value")) { |
2317 value = _json["value"]; | 2317 value = _json["value"]; |
2318 } | 2318 } |
2319 } | 2319 } |
2320 | 2320 |
2321 core.Map toJson() { | 2321 core.Map<core.String, core.Object> toJson() { |
2322 var _json = new core.Map(); | 2322 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2323 if (metadata != null) { | 2323 if (metadata != null) { |
2324 _json["metadata"] = (metadata).toJson(); | 2324 _json["metadata"] = (metadata).toJson(); |
2325 } | 2325 } |
2326 if (value != null) { | 2326 if (value != null) { |
2327 _json["value"] = value; | 2327 _json["value"] = value; |
2328 } | 2328 } |
2329 return _json; | 2329 return _json; |
2330 } | 2330 } |
2331 } | 2331 } |
2332 | 2332 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2370 id = _json["id"]; | 2370 id = _json["id"]; |
2371 } | 2371 } |
2372 if (_json.containsKey("profileMetadata")) { | 2372 if (_json.containsKey("profileMetadata")) { |
2373 profileMetadata = new ProfileMetadata.fromJson(_json["profileMetadata"]); | 2373 profileMetadata = new ProfileMetadata.fromJson(_json["profileMetadata"]); |
2374 } | 2374 } |
2375 if (_json.containsKey("type")) { | 2375 if (_json.containsKey("type")) { |
2376 type = _json["type"]; | 2376 type = _json["type"]; |
2377 } | 2377 } |
2378 } | 2378 } |
2379 | 2379 |
2380 core.Map toJson() { | 2380 core.Map<core.String, core.Object> toJson() { |
2381 var _json = new core.Map(); | 2381 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2382 if (etag != null) { | 2382 if (etag != null) { |
2383 _json["etag"] = etag; | 2383 _json["etag"] = etag; |
2384 } | 2384 } |
2385 if (id != null) { | 2385 if (id != null) { |
2386 _json["id"] = id; | 2386 _json["id"] = id; |
2387 } | 2387 } |
2388 if (profileMetadata != null) { | 2388 if (profileMetadata != null) { |
2389 _json["profileMetadata"] = (profileMetadata).toJson(); | 2389 _json["profileMetadata"] = (profileMetadata).toJson(); |
2390 } | 2390 } |
2391 if (type != null) { | 2391 if (type != null) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2476 code = _json["code"]; | 2476 code = _json["code"]; |
2477 } | 2477 } |
2478 if (_json.containsKey("details")) { | 2478 if (_json.containsKey("details")) { |
2479 details = _json["details"]; | 2479 details = _json["details"]; |
2480 } | 2480 } |
2481 if (_json.containsKey("message")) { | 2481 if (_json.containsKey("message")) { |
2482 message = _json["message"]; | 2482 message = _json["message"]; |
2483 } | 2483 } |
2484 } | 2484 } |
2485 | 2485 |
2486 core.Map toJson() { | 2486 core.Map<core.String, core.Object> toJson() { |
2487 var _json = new core.Map(); | 2487 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2488 if (code != null) { | 2488 if (code != null) { |
2489 _json["code"] = code; | 2489 _json["code"] = code; |
2490 } | 2490 } |
2491 if (details != null) { | 2491 if (details != null) { |
2492 _json["details"] = details; | 2492 _json["details"] = details; |
2493 } | 2493 } |
2494 if (message != null) { | 2494 if (message != null) { |
2495 _json["message"] = message; | 2495 _json["message"] = message; |
2496 } | 2496 } |
2497 return _json; | 2497 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
2509 | 2509 |
2510 Tagline.fromJson(core.Map _json) { | 2510 Tagline.fromJson(core.Map _json) { |
2511 if (_json.containsKey("metadata")) { | 2511 if (_json.containsKey("metadata")) { |
2512 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2512 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2513 } | 2513 } |
2514 if (_json.containsKey("value")) { | 2514 if (_json.containsKey("value")) { |
2515 value = _json["value"]; | 2515 value = _json["value"]; |
2516 } | 2516 } |
2517 } | 2517 } |
2518 | 2518 |
2519 core.Map toJson() { | 2519 core.Map<core.String, core.Object> toJson() { |
2520 var _json = new core.Map(); | 2520 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2521 if (metadata != null) { | 2521 if (metadata != null) { |
2522 _json["metadata"] = (metadata).toJson(); | 2522 _json["metadata"] = (metadata).toJson(); |
2523 } | 2523 } |
2524 if (value != null) { | 2524 if (value != null) { |
2525 _json["value"] = value; | 2525 _json["value"] = value; |
2526 } | 2526 } |
2527 return _json; | 2527 return _json; |
2528 } | 2528 } |
2529 } | 2529 } |
2530 | 2530 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2565 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 2565 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
2566 } | 2566 } |
2567 if (_json.containsKey("type")) { | 2567 if (_json.containsKey("type")) { |
2568 type = _json["type"]; | 2568 type = _json["type"]; |
2569 } | 2569 } |
2570 if (_json.containsKey("value")) { | 2570 if (_json.containsKey("value")) { |
2571 value = _json["value"]; | 2571 value = _json["value"]; |
2572 } | 2572 } |
2573 } | 2573 } |
2574 | 2574 |
2575 core.Map toJson() { | 2575 core.Map<core.String, core.Object> toJson() { |
2576 var _json = new core.Map(); | 2576 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2577 if (formattedType != null) { | 2577 if (formattedType != null) { |
2578 _json["formattedType"] = formattedType; | 2578 _json["formattedType"] = formattedType; |
2579 } | 2579 } |
2580 if (metadata != null) { | 2580 if (metadata != null) { |
2581 _json["metadata"] = (metadata).toJson(); | 2581 _json["metadata"] = (metadata).toJson(); |
2582 } | 2582 } |
2583 if (type != null) { | 2583 if (type != null) { |
2584 _json["type"] = type; | 2584 _json["type"] = type; |
2585 } | 2585 } |
2586 if (value != null) { | 2586 if (value != null) { |
2587 _json["value"] = value; | 2587 _json["value"] = value; |
2588 } | 2588 } |
2589 return _json; | 2589 return _json; |
2590 } | 2590 } |
2591 } | 2591 } |
OLD | NEW |