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.plus.v1; | 3 library googleapis.plus.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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 description = _json["description"]; | 601 description = _json["description"]; |
602 } | 602 } |
603 if (_json.containsKey("items")) { | 603 if (_json.containsKey("items")) { |
604 items = _json["items"].map((value) => new PlusAclentryResource.fromJson(va
lue)).toList(); | 604 items = _json["items"].map((value) => new PlusAclentryResource.fromJson(va
lue)).toList(); |
605 } | 605 } |
606 if (_json.containsKey("kind")) { | 606 if (_json.containsKey("kind")) { |
607 kind = _json["kind"]; | 607 kind = _json["kind"]; |
608 } | 608 } |
609 } | 609 } |
610 | 610 |
611 core.Map toJson() { | 611 core.Map<core.String, core.Object> toJson() { |
612 var _json = new core.Map(); | 612 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
613 if (description != null) { | 613 if (description != null) { |
614 _json["description"] = description; | 614 _json["description"] = description; |
615 } | 615 } |
616 if (items != null) { | 616 if (items != null) { |
617 _json["items"] = items.map((value) => (value).toJson()).toList(); | 617 _json["items"] = items.map((value) => (value).toJson()).toList(); |
618 } | 618 } |
619 if (kind != null) { | 619 if (kind != null) { |
620 _json["kind"] = kind; | 620 _json["kind"] = kind; |
621 } | 621 } |
622 return _json; | 622 return _json; |
623 } | 623 } |
624 } | 624 } |
625 | 625 |
626 /** Actor info specific to YouTube clients. */ | 626 /** Actor info specific to YouTube clients. */ |
627 class ActivityActorClientSpecificActorInfoYoutubeActorInfo { | 627 class ActivityActorClientSpecificActorInfoYoutubeActorInfo { |
628 /** ID of the YouTube channel owned by the Actor. */ | 628 /** ID of the YouTube channel owned by the Actor. */ |
629 core.String channelId; | 629 core.String channelId; |
630 | 630 |
631 ActivityActorClientSpecificActorInfoYoutubeActorInfo(); | 631 ActivityActorClientSpecificActorInfoYoutubeActorInfo(); |
632 | 632 |
633 ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json)
{ | 633 ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json)
{ |
634 if (_json.containsKey("channelId")) { | 634 if (_json.containsKey("channelId")) { |
635 channelId = _json["channelId"]; | 635 channelId = _json["channelId"]; |
636 } | 636 } |
637 } | 637 } |
638 | 638 |
639 core.Map toJson() { | 639 core.Map<core.String, core.Object> toJson() { |
640 var _json = new core.Map(); | 640 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
641 if (channelId != null) { | 641 if (channelId != null) { |
642 _json["channelId"] = channelId; | 642 _json["channelId"] = channelId; |
643 } | 643 } |
644 return _json; | 644 return _json; |
645 } | 645 } |
646 } | 646 } |
647 | 647 |
648 /** Actor info specific to particular clients. */ | 648 /** Actor info specific to particular clients. */ |
649 class ActivityActorClientSpecificActorInfo { | 649 class ActivityActorClientSpecificActorInfo { |
650 /** Actor info specific to YouTube clients. */ | 650 /** Actor info specific to YouTube clients. */ |
651 ActivityActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; | 651 ActivityActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; |
652 | 652 |
653 ActivityActorClientSpecificActorInfo(); | 653 ActivityActorClientSpecificActorInfo(); |
654 | 654 |
655 ActivityActorClientSpecificActorInfo.fromJson(core.Map _json) { | 655 ActivityActorClientSpecificActorInfo.fromJson(core.Map _json) { |
656 if (_json.containsKey("youtubeActorInfo")) { | 656 if (_json.containsKey("youtubeActorInfo")) { |
657 youtubeActorInfo = new ActivityActorClientSpecificActorInfoYoutubeActorInf
o.fromJson(_json["youtubeActorInfo"]); | 657 youtubeActorInfo = new ActivityActorClientSpecificActorInfoYoutubeActorInf
o.fromJson(_json["youtubeActorInfo"]); |
658 } | 658 } |
659 } | 659 } |
660 | 660 |
661 core.Map toJson() { | 661 core.Map<core.String, core.Object> toJson() { |
662 var _json = new core.Map(); | 662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
663 if (youtubeActorInfo != null) { | 663 if (youtubeActorInfo != null) { |
664 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); | 664 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); |
665 } | 665 } |
666 return _json; | 666 return _json; |
667 } | 667 } |
668 } | 668 } |
669 | 669 |
670 /** The image representation of the actor. */ | 670 /** The image representation of the actor. */ |
671 class ActivityActorImage { | 671 class ActivityActorImage { |
672 /** | 672 /** |
673 * The URL of the actor's profile photo. To resize the image and crop it to a | 673 * The URL of the actor's profile photo. To resize the image and crop it to a |
674 * square, append the query string ?sz=x, where x is the dimension in pixels | 674 * square, append the query string ?sz=x, where x is the dimension in pixels |
675 * of each side. | 675 * of each side. |
676 */ | 676 */ |
677 core.String url; | 677 core.String url; |
678 | 678 |
679 ActivityActorImage(); | 679 ActivityActorImage(); |
680 | 680 |
681 ActivityActorImage.fromJson(core.Map _json) { | 681 ActivityActorImage.fromJson(core.Map _json) { |
682 if (_json.containsKey("url")) { | 682 if (_json.containsKey("url")) { |
683 url = _json["url"]; | 683 url = _json["url"]; |
684 } | 684 } |
685 } | 685 } |
686 | 686 |
687 core.Map toJson() { | 687 core.Map<core.String, core.Object> toJson() { |
688 var _json = new core.Map(); | 688 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
689 if (url != null) { | 689 if (url != null) { |
690 _json["url"] = url; | 690 _json["url"] = url; |
691 } | 691 } |
692 return _json; | 692 return _json; |
693 } | 693 } |
694 } | 694 } |
695 | 695 |
696 /** An object representation of the individual components of name. */ | 696 /** An object representation of the individual components of name. */ |
697 class ActivityActorName { | 697 class ActivityActorName { |
698 /** The family name ("last name") of the actor. */ | 698 /** The family name ("last name") of the actor. */ |
699 core.String familyName; | 699 core.String familyName; |
700 /** The given name ("first name") of the actor. */ | 700 /** The given name ("first name") of the actor. */ |
701 core.String givenName; | 701 core.String givenName; |
702 | 702 |
703 ActivityActorName(); | 703 ActivityActorName(); |
704 | 704 |
705 ActivityActorName.fromJson(core.Map _json) { | 705 ActivityActorName.fromJson(core.Map _json) { |
706 if (_json.containsKey("familyName")) { | 706 if (_json.containsKey("familyName")) { |
707 familyName = _json["familyName"]; | 707 familyName = _json["familyName"]; |
708 } | 708 } |
709 if (_json.containsKey("givenName")) { | 709 if (_json.containsKey("givenName")) { |
710 givenName = _json["givenName"]; | 710 givenName = _json["givenName"]; |
711 } | 711 } |
712 } | 712 } |
713 | 713 |
714 core.Map toJson() { | 714 core.Map<core.String, core.Object> toJson() { |
715 var _json = new core.Map(); | 715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
716 if (familyName != null) { | 716 if (familyName != null) { |
717 _json["familyName"] = familyName; | 717 _json["familyName"] = familyName; |
718 } | 718 } |
719 if (givenName != null) { | 719 if (givenName != null) { |
720 _json["givenName"] = givenName; | 720 _json["givenName"] = givenName; |
721 } | 721 } |
722 return _json; | 722 return _json; |
723 } | 723 } |
724 } | 724 } |
725 | 725 |
726 /** Verification status of actor. */ | 726 /** Verification status of actor. */ |
727 class ActivityActorVerification { | 727 class ActivityActorVerification { |
728 /** Verification for one-time or manual processes. */ | 728 /** Verification for one-time or manual processes. */ |
729 core.String adHocVerified; | 729 core.String adHocVerified; |
730 | 730 |
731 ActivityActorVerification(); | 731 ActivityActorVerification(); |
732 | 732 |
733 ActivityActorVerification.fromJson(core.Map _json) { | 733 ActivityActorVerification.fromJson(core.Map _json) { |
734 if (_json.containsKey("adHocVerified")) { | 734 if (_json.containsKey("adHocVerified")) { |
735 adHocVerified = _json["adHocVerified"]; | 735 adHocVerified = _json["adHocVerified"]; |
736 } | 736 } |
737 } | 737 } |
738 | 738 |
739 core.Map toJson() { | 739 core.Map<core.String, core.Object> toJson() { |
740 var _json = new core.Map(); | 740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
741 if (adHocVerified != null) { | 741 if (adHocVerified != null) { |
742 _json["adHocVerified"] = adHocVerified; | 742 _json["adHocVerified"] = adHocVerified; |
743 } | 743 } |
744 return _json; | 744 return _json; |
745 } | 745 } |
746 } | 746 } |
747 | 747 |
748 /** The person who performed this activity. */ | 748 /** The person who performed this activity. */ |
749 class ActivityActor { | 749 class ActivityActor { |
750 /** Actor info specific to particular clients. */ | 750 /** Actor info specific to particular clients. */ |
(...skipping 30 matching lines...) Expand all Loading... |
781 name = new ActivityActorName.fromJson(_json["name"]); | 781 name = new ActivityActorName.fromJson(_json["name"]); |
782 } | 782 } |
783 if (_json.containsKey("url")) { | 783 if (_json.containsKey("url")) { |
784 url = _json["url"]; | 784 url = _json["url"]; |
785 } | 785 } |
786 if (_json.containsKey("verification")) { | 786 if (_json.containsKey("verification")) { |
787 verification = new ActivityActorVerification.fromJson(_json["verification"
]); | 787 verification = new ActivityActorVerification.fromJson(_json["verification"
]); |
788 } | 788 } |
789 } | 789 } |
790 | 790 |
791 core.Map toJson() { | 791 core.Map<core.String, core.Object> toJson() { |
792 var _json = new core.Map(); | 792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
793 if (clientSpecificActorInfo != null) { | 793 if (clientSpecificActorInfo != null) { |
794 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); | 794 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); |
795 } | 795 } |
796 if (displayName != null) { | 796 if (displayName != null) { |
797 _json["displayName"] = displayName; | 797 _json["displayName"] = displayName; |
798 } | 798 } |
799 if (id != null) { | 799 if (id != null) { |
800 _json["id"] = id; | 800 _json["id"] = id; |
801 } | 801 } |
802 if (image != null) { | 802 if (image != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
821 core.String channelId; | 821 core.String channelId; |
822 | 822 |
823 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); | 823 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); |
824 | 824 |
825 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _
json) { | 825 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _
json) { |
826 if (_json.containsKey("channelId")) { | 826 if (_json.containsKey("channelId")) { |
827 channelId = _json["channelId"]; | 827 channelId = _json["channelId"]; |
828 } | 828 } |
829 } | 829 } |
830 | 830 |
831 core.Map toJson() { | 831 core.Map<core.String, core.Object> toJson() { |
832 var _json = new core.Map(); | 832 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
833 if (channelId != null) { | 833 if (channelId != null) { |
834 _json["channelId"] = channelId; | 834 _json["channelId"] = channelId; |
835 } | 835 } |
836 return _json; | 836 return _json; |
837 } | 837 } |
838 } | 838 } |
839 | 839 |
840 /** Actor info specific to particular clients. */ | 840 /** Actor info specific to particular clients. */ |
841 class ActivityObjectActorClientSpecificActorInfo { | 841 class ActivityObjectActorClientSpecificActorInfo { |
842 /** Actor info specific to YouTube clients. */ | 842 /** Actor info specific to YouTube clients. */ |
843 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; | 843 ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; |
844 | 844 |
845 ActivityObjectActorClientSpecificActorInfo(); | 845 ActivityObjectActorClientSpecificActorInfo(); |
846 | 846 |
847 ActivityObjectActorClientSpecificActorInfo.fromJson(core.Map _json) { | 847 ActivityObjectActorClientSpecificActorInfo.fromJson(core.Map _json) { |
848 if (_json.containsKey("youtubeActorInfo")) { | 848 if (_json.containsKey("youtubeActorInfo")) { |
849 youtubeActorInfo = new ActivityObjectActorClientSpecificActorInfoYoutubeAc
torInfo.fromJson(_json["youtubeActorInfo"]); | 849 youtubeActorInfo = new ActivityObjectActorClientSpecificActorInfoYoutubeAc
torInfo.fromJson(_json["youtubeActorInfo"]); |
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 (youtubeActorInfo != null) { | 855 if (youtubeActorInfo != null) { |
856 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); | 856 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); |
857 } | 857 } |
858 return _json; | 858 return _json; |
859 } | 859 } |
860 } | 860 } |
861 | 861 |
862 /** The image representation of the original actor. */ | 862 /** The image representation of the original actor. */ |
863 class ActivityObjectActorImage { | 863 class ActivityObjectActorImage { |
864 /** A URL that points to a thumbnail photo of the original actor. */ | 864 /** A URL that points to a thumbnail photo of the original actor. */ |
865 core.String url; | 865 core.String url; |
866 | 866 |
867 ActivityObjectActorImage(); | 867 ActivityObjectActorImage(); |
868 | 868 |
869 ActivityObjectActorImage.fromJson(core.Map _json) { | 869 ActivityObjectActorImage.fromJson(core.Map _json) { |
870 if (_json.containsKey("url")) { | 870 if (_json.containsKey("url")) { |
871 url = _json["url"]; | 871 url = _json["url"]; |
872 } | 872 } |
873 } | 873 } |
874 | 874 |
875 core.Map toJson() { | 875 core.Map<core.String, core.Object> toJson() { |
876 var _json = new core.Map(); | 876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
877 if (url != null) { | 877 if (url != null) { |
878 _json["url"] = url; | 878 _json["url"] = url; |
879 } | 879 } |
880 return _json; | 880 return _json; |
881 } | 881 } |
882 } | 882 } |
883 | 883 |
884 /** Verification status of actor. */ | 884 /** Verification status of actor. */ |
885 class ActivityObjectActorVerification { | 885 class ActivityObjectActorVerification { |
886 /** Verification for one-time or manual processes. */ | 886 /** Verification for one-time or manual processes. */ |
887 core.String adHocVerified; | 887 core.String adHocVerified; |
888 | 888 |
889 ActivityObjectActorVerification(); | 889 ActivityObjectActorVerification(); |
890 | 890 |
891 ActivityObjectActorVerification.fromJson(core.Map _json) { | 891 ActivityObjectActorVerification.fromJson(core.Map _json) { |
892 if (_json.containsKey("adHocVerified")) { | 892 if (_json.containsKey("adHocVerified")) { |
893 adHocVerified = _json["adHocVerified"]; | 893 adHocVerified = _json["adHocVerified"]; |
894 } | 894 } |
895 } | 895 } |
896 | 896 |
897 core.Map toJson() { | 897 core.Map<core.String, core.Object> toJson() { |
898 var _json = new core.Map(); | 898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
899 if (adHocVerified != null) { | 899 if (adHocVerified != null) { |
900 _json["adHocVerified"] = adHocVerified; | 900 _json["adHocVerified"] = adHocVerified; |
901 } | 901 } |
902 return _json; | 902 return _json; |
903 } | 903 } |
904 } | 904 } |
905 | 905 |
906 /** | 906 /** |
907 * If this activity's object is itself another activity, such as when a person | 907 * If this activity's object is itself another activity, such as when a person |
908 * reshares an activity, this property specifies the original activity's actor. | 908 * reshares an activity, this property specifies the original activity's actor. |
(...skipping 28 matching lines...) Expand all Loading... |
937 image = new ActivityObjectActorImage.fromJson(_json["image"]); | 937 image = new ActivityObjectActorImage.fromJson(_json["image"]); |
938 } | 938 } |
939 if (_json.containsKey("url")) { | 939 if (_json.containsKey("url")) { |
940 url = _json["url"]; | 940 url = _json["url"]; |
941 } | 941 } |
942 if (_json.containsKey("verification")) { | 942 if (_json.containsKey("verification")) { |
943 verification = new ActivityObjectActorVerification.fromJson(_json["verific
ation"]); | 943 verification = new ActivityObjectActorVerification.fromJson(_json["verific
ation"]); |
944 } | 944 } |
945 } | 945 } |
946 | 946 |
947 core.Map toJson() { | 947 core.Map<core.String, core.Object> toJson() { |
948 var _json = new core.Map(); | 948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
949 if (clientSpecificActorInfo != null) { | 949 if (clientSpecificActorInfo != null) { |
950 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); | 950 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); |
951 } | 951 } |
952 if (displayName != null) { | 952 if (displayName != null) { |
953 _json["displayName"] = displayName; | 953 _json["displayName"] = displayName; |
954 } | 954 } |
955 if (id != null) { | 955 if (id != null) { |
956 _json["id"] = id; | 956 _json["id"] = id; |
957 } | 957 } |
958 if (image != null) { | 958 if (image != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
979 | 979 |
980 ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) { | 980 ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) { |
981 if (_json.containsKey("type")) { | 981 if (_json.containsKey("type")) { |
982 type = _json["type"]; | 982 type = _json["type"]; |
983 } | 983 } |
984 if (_json.containsKey("url")) { | 984 if (_json.containsKey("url")) { |
985 url = _json["url"]; | 985 url = _json["url"]; |
986 } | 986 } |
987 } | 987 } |
988 | 988 |
989 core.Map toJson() { | 989 core.Map<core.String, core.Object> toJson() { |
990 var _json = new core.Map(); | 990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
991 if (type != null) { | 991 if (type != null) { |
992 _json["type"] = type; | 992 _json["type"] = type; |
993 } | 993 } |
994 if (url != null) { | 994 if (url != null) { |
995 _json["url"] = url; | 995 _json["url"] = url; |
996 } | 996 } |
997 return _json; | 997 return _json; |
998 } | 998 } |
999 } | 999 } |
1000 | 1000 |
(...skipping 18 matching lines...) Expand all Loading... |
1019 type = _json["type"]; | 1019 type = _json["type"]; |
1020 } | 1020 } |
1021 if (_json.containsKey("url")) { | 1021 if (_json.containsKey("url")) { |
1022 url = _json["url"]; | 1022 url = _json["url"]; |
1023 } | 1023 } |
1024 if (_json.containsKey("width")) { | 1024 if (_json.containsKey("width")) { |
1025 width = _json["width"]; | 1025 width = _json["width"]; |
1026 } | 1026 } |
1027 } | 1027 } |
1028 | 1028 |
1029 core.Map toJson() { | 1029 core.Map<core.String, core.Object> toJson() { |
1030 var _json = new core.Map(); | 1030 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1031 if (height != null) { | 1031 if (height != null) { |
1032 _json["height"] = height; | 1032 _json["height"] = height; |
1033 } | 1033 } |
1034 if (type != null) { | 1034 if (type != null) { |
1035 _json["type"] = type; | 1035 _json["type"] = type; |
1036 } | 1036 } |
1037 if (url != null) { | 1037 if (url != null) { |
1038 _json["url"] = url; | 1038 _json["url"] = url; |
1039 } | 1039 } |
1040 if (width != null) { | 1040 if (width != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
1065 type = _json["type"]; | 1065 type = _json["type"]; |
1066 } | 1066 } |
1067 if (_json.containsKey("url")) { | 1067 if (_json.containsKey("url")) { |
1068 url = _json["url"]; | 1068 url = _json["url"]; |
1069 } | 1069 } |
1070 if (_json.containsKey("width")) { | 1070 if (_json.containsKey("width")) { |
1071 width = _json["width"]; | 1071 width = _json["width"]; |
1072 } | 1072 } |
1073 } | 1073 } |
1074 | 1074 |
1075 core.Map toJson() { | 1075 core.Map<core.String, core.Object> toJson() { |
1076 var _json = new core.Map(); | 1076 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1077 if (height != null) { | 1077 if (height != null) { |
1078 _json["height"] = height; | 1078 _json["height"] = height; |
1079 } | 1079 } |
1080 if (type != null) { | 1080 if (type != null) { |
1081 _json["type"] = type; | 1081 _json["type"] = type; |
1082 } | 1082 } |
1083 if (url != null) { | 1083 if (url != null) { |
1084 _json["url"] = url; | 1084 _json["url"] = url; |
1085 } | 1085 } |
1086 if (width != null) { | 1086 if (width != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
1111 type = _json["type"]; | 1111 type = _json["type"]; |
1112 } | 1112 } |
1113 if (_json.containsKey("url")) { | 1113 if (_json.containsKey("url")) { |
1114 url = _json["url"]; | 1114 url = _json["url"]; |
1115 } | 1115 } |
1116 if (_json.containsKey("width")) { | 1116 if (_json.containsKey("width")) { |
1117 width = _json["width"]; | 1117 width = _json["width"]; |
1118 } | 1118 } |
1119 } | 1119 } |
1120 | 1120 |
1121 core.Map toJson() { | 1121 core.Map<core.String, core.Object> toJson() { |
1122 var _json = new core.Map(); | 1122 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1123 if (height != null) { | 1123 if (height != null) { |
1124 _json["height"] = height; | 1124 _json["height"] = height; |
1125 } | 1125 } |
1126 if (type != null) { | 1126 if (type != null) { |
1127 _json["type"] = type; | 1127 _json["type"] = type; |
1128 } | 1128 } |
1129 if (url != null) { | 1129 if (url != null) { |
1130 _json["url"] = url; | 1130 _json["url"] = url; |
1131 } | 1131 } |
1132 if (width != null) { | 1132 if (width != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
1151 description = _json["description"]; | 1151 description = _json["description"]; |
1152 } | 1152 } |
1153 if (_json.containsKey("image")) { | 1153 if (_json.containsKey("image")) { |
1154 image = new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image
"]); | 1154 image = new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image
"]); |
1155 } | 1155 } |
1156 if (_json.containsKey("url")) { | 1156 if (_json.containsKey("url")) { |
1157 url = _json["url"]; | 1157 url = _json["url"]; |
1158 } | 1158 } |
1159 } | 1159 } |
1160 | 1160 |
1161 core.Map toJson() { | 1161 core.Map<core.String, core.Object> toJson() { |
1162 var _json = new core.Map(); | 1162 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1163 if (description != null) { | 1163 if (description != null) { |
1164 _json["description"] = description; | 1164 _json["description"] = description; |
1165 } | 1165 } |
1166 if (image != null) { | 1166 if (image != null) { |
1167 _json["image"] = (image).toJson(); | 1167 _json["image"] = (image).toJson(); |
1168 } | 1168 } |
1169 if (url != null) { | 1169 if (url != null) { |
1170 _json["url"] = url; | 1170 _json["url"] = url; |
1171 } | 1171 } |
1172 return _json; | 1172 return _json; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 objectType = _json["objectType"]; | 1233 objectType = _json["objectType"]; |
1234 } | 1234 } |
1235 if (_json.containsKey("thumbnails")) { | 1235 if (_json.containsKey("thumbnails")) { |
1236 thumbnails = _json["thumbnails"].map((value) => new ActivityObjectAttachme
ntsThumbnails.fromJson(value)).toList(); | 1236 thumbnails = _json["thumbnails"].map((value) => new ActivityObjectAttachme
ntsThumbnails.fromJson(value)).toList(); |
1237 } | 1237 } |
1238 if (_json.containsKey("url")) { | 1238 if (_json.containsKey("url")) { |
1239 url = _json["url"]; | 1239 url = _json["url"]; |
1240 } | 1240 } |
1241 } | 1241 } |
1242 | 1242 |
1243 core.Map toJson() { | 1243 core.Map<core.String, core.Object> toJson() { |
1244 var _json = new core.Map(); | 1244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1245 if (content != null) { | 1245 if (content != null) { |
1246 _json["content"] = content; | 1246 _json["content"] = content; |
1247 } | 1247 } |
1248 if (displayName != null) { | 1248 if (displayName != null) { |
1249 _json["displayName"] = displayName; | 1249 _json["displayName"] = displayName; |
1250 } | 1250 } |
1251 if (embed != null) { | 1251 if (embed != null) { |
1252 _json["embed"] = (embed).toJson(); | 1252 _json["embed"] = (embed).toJson(); |
1253 } | 1253 } |
1254 if (fullImage != null) { | 1254 if (fullImage != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
1284 | 1284 |
1285 ActivityObjectPlusoners.fromJson(core.Map _json) { | 1285 ActivityObjectPlusoners.fromJson(core.Map _json) { |
1286 if (_json.containsKey("selfLink")) { | 1286 if (_json.containsKey("selfLink")) { |
1287 selfLink = _json["selfLink"]; | 1287 selfLink = _json["selfLink"]; |
1288 } | 1288 } |
1289 if (_json.containsKey("totalItems")) { | 1289 if (_json.containsKey("totalItems")) { |
1290 totalItems = _json["totalItems"]; | 1290 totalItems = _json["totalItems"]; |
1291 } | 1291 } |
1292 } | 1292 } |
1293 | 1293 |
1294 core.Map toJson() { | 1294 core.Map<core.String, core.Object> toJson() { |
1295 var _json = new core.Map(); | 1295 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1296 if (selfLink != null) { | 1296 if (selfLink != null) { |
1297 _json["selfLink"] = selfLink; | 1297 _json["selfLink"] = selfLink; |
1298 } | 1298 } |
1299 if (totalItems != null) { | 1299 if (totalItems != null) { |
1300 _json["totalItems"] = totalItems; | 1300 _json["totalItems"] = totalItems; |
1301 } | 1301 } |
1302 return _json; | 1302 return _json; |
1303 } | 1303 } |
1304 } | 1304 } |
1305 | 1305 |
1306 /** Comments in reply to this activity. */ | 1306 /** Comments in reply to this activity. */ |
1307 class ActivityObjectReplies { | 1307 class ActivityObjectReplies { |
1308 /** The URL for the collection of comments in reply to this activity. */ | 1308 /** The URL for the collection of comments in reply to this activity. */ |
1309 core.String selfLink; | 1309 core.String selfLink; |
1310 /** Total number of comments on this activity. */ | 1310 /** Total number of comments on this activity. */ |
1311 core.int totalItems; | 1311 core.int totalItems; |
1312 | 1312 |
1313 ActivityObjectReplies(); | 1313 ActivityObjectReplies(); |
1314 | 1314 |
1315 ActivityObjectReplies.fromJson(core.Map _json) { | 1315 ActivityObjectReplies.fromJson(core.Map _json) { |
1316 if (_json.containsKey("selfLink")) { | 1316 if (_json.containsKey("selfLink")) { |
1317 selfLink = _json["selfLink"]; | 1317 selfLink = _json["selfLink"]; |
1318 } | 1318 } |
1319 if (_json.containsKey("totalItems")) { | 1319 if (_json.containsKey("totalItems")) { |
1320 totalItems = _json["totalItems"]; | 1320 totalItems = _json["totalItems"]; |
1321 } | 1321 } |
1322 } | 1322 } |
1323 | 1323 |
1324 core.Map toJson() { | 1324 core.Map<core.String, core.Object> toJson() { |
1325 var _json = new core.Map(); | 1325 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1326 if (selfLink != null) { | 1326 if (selfLink != null) { |
1327 _json["selfLink"] = selfLink; | 1327 _json["selfLink"] = selfLink; |
1328 } | 1328 } |
1329 if (totalItems != null) { | 1329 if (totalItems != null) { |
1330 _json["totalItems"] = totalItems; | 1330 _json["totalItems"] = totalItems; |
1331 } | 1331 } |
1332 return _json; | 1332 return _json; |
1333 } | 1333 } |
1334 } | 1334 } |
1335 | 1335 |
1336 /** People who reshared this activity. */ | 1336 /** People who reshared this activity. */ |
1337 class ActivityObjectResharers { | 1337 class ActivityObjectResharers { |
1338 /** The URL for the collection of resharers. */ | 1338 /** The URL for the collection of resharers. */ |
1339 core.String selfLink; | 1339 core.String selfLink; |
1340 /** Total number of people who reshared this activity. */ | 1340 /** Total number of people who reshared this activity. */ |
1341 core.int totalItems; | 1341 core.int totalItems; |
1342 | 1342 |
1343 ActivityObjectResharers(); | 1343 ActivityObjectResharers(); |
1344 | 1344 |
1345 ActivityObjectResharers.fromJson(core.Map _json) { | 1345 ActivityObjectResharers.fromJson(core.Map _json) { |
1346 if (_json.containsKey("selfLink")) { | 1346 if (_json.containsKey("selfLink")) { |
1347 selfLink = _json["selfLink"]; | 1347 selfLink = _json["selfLink"]; |
1348 } | 1348 } |
1349 if (_json.containsKey("totalItems")) { | 1349 if (_json.containsKey("totalItems")) { |
1350 totalItems = _json["totalItems"]; | 1350 totalItems = _json["totalItems"]; |
1351 } | 1351 } |
1352 } | 1352 } |
1353 | 1353 |
1354 core.Map toJson() { | 1354 core.Map<core.String, core.Object> toJson() { |
1355 var _json = new core.Map(); | 1355 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1356 if (selfLink != null) { | 1356 if (selfLink != null) { |
1357 _json["selfLink"] = selfLink; | 1357 _json["selfLink"] = selfLink; |
1358 } | 1358 } |
1359 if (totalItems != null) { | 1359 if (totalItems != null) { |
1360 _json["totalItems"] = totalItems; | 1360 _json["totalItems"] = totalItems; |
1361 } | 1361 } |
1362 return _json; | 1362 return _json; |
1363 } | 1363 } |
1364 } | 1364 } |
1365 | 1365 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 replies = new ActivityObjectReplies.fromJson(_json["replies"]); | 1430 replies = new ActivityObjectReplies.fromJson(_json["replies"]); |
1431 } | 1431 } |
1432 if (_json.containsKey("resharers")) { | 1432 if (_json.containsKey("resharers")) { |
1433 resharers = new ActivityObjectResharers.fromJson(_json["resharers"]); | 1433 resharers = new ActivityObjectResharers.fromJson(_json["resharers"]); |
1434 } | 1434 } |
1435 if (_json.containsKey("url")) { | 1435 if (_json.containsKey("url")) { |
1436 url = _json["url"]; | 1436 url = _json["url"]; |
1437 } | 1437 } |
1438 } | 1438 } |
1439 | 1439 |
1440 core.Map toJson() { | 1440 core.Map<core.String, core.Object> toJson() { |
1441 var _json = new core.Map(); | 1441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1442 if (actor != null) { | 1442 if (actor != null) { |
1443 _json["actor"] = (actor).toJson(); | 1443 _json["actor"] = (actor).toJson(); |
1444 } | 1444 } |
1445 if (attachments != null) { | 1445 if (attachments != null) { |
1446 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); | 1446 _json["attachments"] = attachments.map((value) => (value).toJson()).toList
(); |
1447 } | 1447 } |
1448 if (content != null) { | 1448 if (content != null) { |
1449 _json["content"] = content; | 1449 _json["content"] = content; |
1450 } | 1450 } |
1451 if (id != null) { | 1451 if (id != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
1479 core.String title; | 1479 core.String title; |
1480 | 1480 |
1481 ActivityProvider(); | 1481 ActivityProvider(); |
1482 | 1482 |
1483 ActivityProvider.fromJson(core.Map _json) { | 1483 ActivityProvider.fromJson(core.Map _json) { |
1484 if (_json.containsKey("title")) { | 1484 if (_json.containsKey("title")) { |
1485 title = _json["title"]; | 1485 title = _json["title"]; |
1486 } | 1486 } |
1487 } | 1487 } |
1488 | 1488 |
1489 core.Map toJson() { | 1489 core.Map<core.String, core.Object> toJson() { |
1490 var _json = new core.Map(); | 1490 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1491 if (title != null) { | 1491 if (title != null) { |
1492 _json["title"] = title; | 1492 _json["title"] = title; |
1493 } | 1493 } |
1494 return _json; | 1494 return _json; |
1495 } | 1495 } |
1496 } | 1496 } |
1497 | 1497 |
1498 class Activity { | 1498 class Activity { |
1499 /** Identifies who has access to see this activity. */ | 1499 /** Identifies who has access to see this activity. */ |
1500 Acl access; | 1500 Acl access; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 updated = core.DateTime.parse(_json["updated"]); | 1618 updated = core.DateTime.parse(_json["updated"]); |
1619 } | 1619 } |
1620 if (_json.containsKey("url")) { | 1620 if (_json.containsKey("url")) { |
1621 url = _json["url"]; | 1621 url = _json["url"]; |
1622 } | 1622 } |
1623 if (_json.containsKey("verb")) { | 1623 if (_json.containsKey("verb")) { |
1624 verb = _json["verb"]; | 1624 verb = _json["verb"]; |
1625 } | 1625 } |
1626 } | 1626 } |
1627 | 1627 |
1628 core.Map toJson() { | 1628 core.Map<core.String, core.Object> toJson() { |
1629 var _json = new core.Map(); | 1629 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1630 if (access != null) { | 1630 if (access != null) { |
1631 _json["access"] = (access).toJson(); | 1631 _json["access"] = (access).toJson(); |
1632 } | 1632 } |
1633 if (actor != null) { | 1633 if (actor != null) { |
1634 _json["actor"] = (actor).toJson(); | 1634 _json["actor"] = (actor).toJson(); |
1635 } | 1635 } |
1636 if (address != null) { | 1636 if (address != null) { |
1637 _json["address"] = address; | 1637 _json["address"] = address; |
1638 } | 1638 } |
1639 if (annotation != null) { | 1639 if (annotation != null) { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1749 selfLink = _json["selfLink"]; | 1749 selfLink = _json["selfLink"]; |
1750 } | 1750 } |
1751 if (_json.containsKey("title")) { | 1751 if (_json.containsKey("title")) { |
1752 title = _json["title"]; | 1752 title = _json["title"]; |
1753 } | 1753 } |
1754 if (_json.containsKey("updated")) { | 1754 if (_json.containsKey("updated")) { |
1755 updated = core.DateTime.parse(_json["updated"]); | 1755 updated = core.DateTime.parse(_json["updated"]); |
1756 } | 1756 } |
1757 } | 1757 } |
1758 | 1758 |
1759 core.Map toJson() { | 1759 core.Map<core.String, core.Object> toJson() { |
1760 var _json = new core.Map(); | 1760 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1761 if (etag != null) { | 1761 if (etag != null) { |
1762 _json["etag"] = etag; | 1762 _json["etag"] = etag; |
1763 } | 1763 } |
1764 if (id != null) { | 1764 if (id != null) { |
1765 _json["id"] = id; | 1765 _json["id"] = id; |
1766 } | 1766 } |
1767 if (items != null) { | 1767 if (items != null) { |
1768 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1768 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1769 } | 1769 } |
1770 if (kind != null) { | 1770 if (kind != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
1795 core.String channelId; | 1795 core.String channelId; |
1796 | 1796 |
1797 CommentActorClientSpecificActorInfoYoutubeActorInfo(); | 1797 CommentActorClientSpecificActorInfoYoutubeActorInfo(); |
1798 | 1798 |
1799 CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json) { | 1799 CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson(core.Map _json) { |
1800 if (_json.containsKey("channelId")) { | 1800 if (_json.containsKey("channelId")) { |
1801 channelId = _json["channelId"]; | 1801 channelId = _json["channelId"]; |
1802 } | 1802 } |
1803 } | 1803 } |
1804 | 1804 |
1805 core.Map toJson() { | 1805 core.Map<core.String, core.Object> toJson() { |
1806 var _json = new core.Map(); | 1806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1807 if (channelId != null) { | 1807 if (channelId != null) { |
1808 _json["channelId"] = channelId; | 1808 _json["channelId"] = channelId; |
1809 } | 1809 } |
1810 return _json; | 1810 return _json; |
1811 } | 1811 } |
1812 } | 1812 } |
1813 | 1813 |
1814 /** Actor info specific to particular clients. */ | 1814 /** Actor info specific to particular clients. */ |
1815 class CommentActorClientSpecificActorInfo { | 1815 class CommentActorClientSpecificActorInfo { |
1816 /** Actor info specific to YouTube clients. */ | 1816 /** Actor info specific to YouTube clients. */ |
1817 CommentActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; | 1817 CommentActorClientSpecificActorInfoYoutubeActorInfo youtubeActorInfo; |
1818 | 1818 |
1819 CommentActorClientSpecificActorInfo(); | 1819 CommentActorClientSpecificActorInfo(); |
1820 | 1820 |
1821 CommentActorClientSpecificActorInfo.fromJson(core.Map _json) { | 1821 CommentActorClientSpecificActorInfo.fromJson(core.Map _json) { |
1822 if (_json.containsKey("youtubeActorInfo")) { | 1822 if (_json.containsKey("youtubeActorInfo")) { |
1823 youtubeActorInfo = new CommentActorClientSpecificActorInfoYoutubeActorInfo
.fromJson(_json["youtubeActorInfo"]); | 1823 youtubeActorInfo = new CommentActorClientSpecificActorInfoYoutubeActorInfo
.fromJson(_json["youtubeActorInfo"]); |
1824 } | 1824 } |
1825 } | 1825 } |
1826 | 1826 |
1827 core.Map toJson() { | 1827 core.Map<core.String, core.Object> toJson() { |
1828 var _json = new core.Map(); | 1828 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1829 if (youtubeActorInfo != null) { | 1829 if (youtubeActorInfo != null) { |
1830 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); | 1830 _json["youtubeActorInfo"] = (youtubeActorInfo).toJson(); |
1831 } | 1831 } |
1832 return _json; | 1832 return _json; |
1833 } | 1833 } |
1834 } | 1834 } |
1835 | 1835 |
1836 /** The image representation of this actor. */ | 1836 /** The image representation of this actor. */ |
1837 class CommentActorImage { | 1837 class CommentActorImage { |
1838 /** | 1838 /** |
1839 * The URL of the actor's profile photo. To resize the image and crop it to a | 1839 * The URL of the actor's profile photo. To resize the image and crop it to a |
1840 * square, append the query string ?sz=x, where x is the dimension in pixels | 1840 * square, append the query string ?sz=x, where x is the dimension in pixels |
1841 * of each side. | 1841 * of each side. |
1842 */ | 1842 */ |
1843 core.String url; | 1843 core.String url; |
1844 | 1844 |
1845 CommentActorImage(); | 1845 CommentActorImage(); |
1846 | 1846 |
1847 CommentActorImage.fromJson(core.Map _json) { | 1847 CommentActorImage.fromJson(core.Map _json) { |
1848 if (_json.containsKey("url")) { | 1848 if (_json.containsKey("url")) { |
1849 url = _json["url"]; | 1849 url = _json["url"]; |
1850 } | 1850 } |
1851 } | 1851 } |
1852 | 1852 |
1853 core.Map toJson() { | 1853 core.Map<core.String, core.Object> toJson() { |
1854 var _json = new core.Map(); | 1854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1855 if (url != null) { | 1855 if (url != null) { |
1856 _json["url"] = url; | 1856 _json["url"] = url; |
1857 } | 1857 } |
1858 return _json; | 1858 return _json; |
1859 } | 1859 } |
1860 } | 1860 } |
1861 | 1861 |
1862 /** Verification status of actor. */ | 1862 /** Verification status of actor. */ |
1863 class CommentActorVerification { | 1863 class CommentActorVerification { |
1864 /** Verification for one-time or manual processes. */ | 1864 /** Verification for one-time or manual processes. */ |
1865 core.String adHocVerified; | 1865 core.String adHocVerified; |
1866 | 1866 |
1867 CommentActorVerification(); | 1867 CommentActorVerification(); |
1868 | 1868 |
1869 CommentActorVerification.fromJson(core.Map _json) { | 1869 CommentActorVerification.fromJson(core.Map _json) { |
1870 if (_json.containsKey("adHocVerified")) { | 1870 if (_json.containsKey("adHocVerified")) { |
1871 adHocVerified = _json["adHocVerified"]; | 1871 adHocVerified = _json["adHocVerified"]; |
1872 } | 1872 } |
1873 } | 1873 } |
1874 | 1874 |
1875 core.Map toJson() { | 1875 core.Map<core.String, core.Object> toJson() { |
1876 var _json = new core.Map(); | 1876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1877 if (adHocVerified != null) { | 1877 if (adHocVerified != null) { |
1878 _json["adHocVerified"] = adHocVerified; | 1878 _json["adHocVerified"] = adHocVerified; |
1879 } | 1879 } |
1880 return _json; | 1880 return _json; |
1881 } | 1881 } |
1882 } | 1882 } |
1883 | 1883 |
1884 /** The person who posted this comment. */ | 1884 /** The person who posted this comment. */ |
1885 class CommentActor { | 1885 class CommentActor { |
1886 /** Actor info specific to particular clients. */ | 1886 /** Actor info specific to particular clients. */ |
(...skipping 25 matching lines...) Expand all Loading... |
1912 image = new CommentActorImage.fromJson(_json["image"]); | 1912 image = new CommentActorImage.fromJson(_json["image"]); |
1913 } | 1913 } |
1914 if (_json.containsKey("url")) { | 1914 if (_json.containsKey("url")) { |
1915 url = _json["url"]; | 1915 url = _json["url"]; |
1916 } | 1916 } |
1917 if (_json.containsKey("verification")) { | 1917 if (_json.containsKey("verification")) { |
1918 verification = new CommentActorVerification.fromJson(_json["verification"]
); | 1918 verification = new CommentActorVerification.fromJson(_json["verification"]
); |
1919 } | 1919 } |
1920 } | 1920 } |
1921 | 1921 |
1922 core.Map toJson() { | 1922 core.Map<core.String, core.Object> toJson() { |
1923 var _json = new core.Map(); | 1923 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1924 if (clientSpecificActorInfo != null) { | 1924 if (clientSpecificActorInfo != null) { |
1925 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); | 1925 _json["clientSpecificActorInfo"] = (clientSpecificActorInfo).toJson(); |
1926 } | 1926 } |
1927 if (displayName != null) { | 1927 if (displayName != null) { |
1928 _json["displayName"] = displayName; | 1928 _json["displayName"] = displayName; |
1929 } | 1929 } |
1930 if (id != null) { | 1930 if (id != null) { |
1931 _json["id"] = id; | 1931 _json["id"] = id; |
1932 } | 1932 } |
1933 if (image != null) { | 1933 if (image != null) { |
(...skipping 19 matching lines...) Expand all Loading... |
1953 | 1953 |
1954 CommentInReplyTo.fromJson(core.Map _json) { | 1954 CommentInReplyTo.fromJson(core.Map _json) { |
1955 if (_json.containsKey("id")) { | 1955 if (_json.containsKey("id")) { |
1956 id = _json["id"]; | 1956 id = _json["id"]; |
1957 } | 1957 } |
1958 if (_json.containsKey("url")) { | 1958 if (_json.containsKey("url")) { |
1959 url = _json["url"]; | 1959 url = _json["url"]; |
1960 } | 1960 } |
1961 } | 1961 } |
1962 | 1962 |
1963 core.Map toJson() { | 1963 core.Map<core.String, core.Object> toJson() { |
1964 var _json = new core.Map(); | 1964 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1965 if (id != null) { | 1965 if (id != null) { |
1966 _json["id"] = id; | 1966 _json["id"] = id; |
1967 } | 1967 } |
1968 if (url != null) { | 1968 if (url != null) { |
1969 _json["url"] = url; | 1969 _json["url"] = url; |
1970 } | 1970 } |
1971 return _json; | 1971 return _json; |
1972 } | 1972 } |
1973 } | 1973 } |
1974 | 1974 |
(...skipping 20 matching lines...) Expand all Loading... |
1995 content = _json["content"]; | 1995 content = _json["content"]; |
1996 } | 1996 } |
1997 if (_json.containsKey("objectType")) { | 1997 if (_json.containsKey("objectType")) { |
1998 objectType = _json["objectType"]; | 1998 objectType = _json["objectType"]; |
1999 } | 1999 } |
2000 if (_json.containsKey("originalContent")) { | 2000 if (_json.containsKey("originalContent")) { |
2001 originalContent = _json["originalContent"]; | 2001 originalContent = _json["originalContent"]; |
2002 } | 2002 } |
2003 } | 2003 } |
2004 | 2004 |
2005 core.Map toJson() { | 2005 core.Map<core.String, core.Object> toJson() { |
2006 var _json = new core.Map(); | 2006 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2007 if (content != null) { | 2007 if (content != null) { |
2008 _json["content"] = content; | 2008 _json["content"] = content; |
2009 } | 2009 } |
2010 if (objectType != null) { | 2010 if (objectType != null) { |
2011 _json["objectType"] = objectType; | 2011 _json["objectType"] = objectType; |
2012 } | 2012 } |
2013 if (originalContent != null) { | 2013 if (originalContent != null) { |
2014 _json["originalContent"] = originalContent; | 2014 _json["originalContent"] = originalContent; |
2015 } | 2015 } |
2016 return _json; | 2016 return _json; |
2017 } | 2017 } |
2018 } | 2018 } |
2019 | 2019 |
2020 /** People who +1'd this comment. */ | 2020 /** People who +1'd this comment. */ |
2021 class CommentPlusoners { | 2021 class CommentPlusoners { |
2022 /** Total number of people who +1'd this comment. */ | 2022 /** Total number of people who +1'd this comment. */ |
2023 core.int totalItems; | 2023 core.int totalItems; |
2024 | 2024 |
2025 CommentPlusoners(); | 2025 CommentPlusoners(); |
2026 | 2026 |
2027 CommentPlusoners.fromJson(core.Map _json) { | 2027 CommentPlusoners.fromJson(core.Map _json) { |
2028 if (_json.containsKey("totalItems")) { | 2028 if (_json.containsKey("totalItems")) { |
2029 totalItems = _json["totalItems"]; | 2029 totalItems = _json["totalItems"]; |
2030 } | 2030 } |
2031 } | 2031 } |
2032 | 2032 |
2033 core.Map toJson() { | 2033 core.Map<core.String, core.Object> toJson() { |
2034 var _json = new core.Map(); | 2034 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2035 if (totalItems != null) { | 2035 if (totalItems != null) { |
2036 _json["totalItems"] = totalItems; | 2036 _json["totalItems"] = totalItems; |
2037 } | 2037 } |
2038 return _json; | 2038 return _json; |
2039 } | 2039 } |
2040 } | 2040 } |
2041 | 2041 |
2042 class Comment { | 2042 class Comment { |
2043 /** The person who posted this comment. */ | 2043 /** The person who posted this comment. */ |
2044 CommentActor actor; | 2044 CommentActor actor; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2104 selfLink = _json["selfLink"]; | 2104 selfLink = _json["selfLink"]; |
2105 } | 2105 } |
2106 if (_json.containsKey("updated")) { | 2106 if (_json.containsKey("updated")) { |
2107 updated = core.DateTime.parse(_json["updated"]); | 2107 updated = core.DateTime.parse(_json["updated"]); |
2108 } | 2108 } |
2109 if (_json.containsKey("verb")) { | 2109 if (_json.containsKey("verb")) { |
2110 verb = _json["verb"]; | 2110 verb = _json["verb"]; |
2111 } | 2111 } |
2112 } | 2112 } |
2113 | 2113 |
2114 core.Map toJson() { | 2114 core.Map<core.String, core.Object> toJson() { |
2115 var _json = new core.Map(); | 2115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2116 if (actor != null) { | 2116 if (actor != null) { |
2117 _json["actor"] = (actor).toJson(); | 2117 _json["actor"] = (actor).toJson(); |
2118 } | 2118 } |
2119 if (etag != null) { | 2119 if (etag != null) { |
2120 _json["etag"] = etag; | 2120 _json["etag"] = etag; |
2121 } | 2121 } |
2122 if (id != null) { | 2122 if (id != null) { |
2123 _json["id"] = id; | 2123 _json["id"] = id; |
2124 } | 2124 } |
2125 if (inReplyTo != null) { | 2125 if (inReplyTo != null) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2200 nextPageToken = _json["nextPageToken"]; | 2200 nextPageToken = _json["nextPageToken"]; |
2201 } | 2201 } |
2202 if (_json.containsKey("title")) { | 2202 if (_json.containsKey("title")) { |
2203 title = _json["title"]; | 2203 title = _json["title"]; |
2204 } | 2204 } |
2205 if (_json.containsKey("updated")) { | 2205 if (_json.containsKey("updated")) { |
2206 updated = core.DateTime.parse(_json["updated"]); | 2206 updated = core.DateTime.parse(_json["updated"]); |
2207 } | 2207 } |
2208 } | 2208 } |
2209 | 2209 |
2210 core.Map toJson() { | 2210 core.Map<core.String, core.Object> toJson() { |
2211 var _json = new core.Map(); | 2211 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2212 if (etag != null) { | 2212 if (etag != null) { |
2213 _json["etag"] = etag; | 2213 _json["etag"] = etag; |
2214 } | 2214 } |
2215 if (id != null) { | 2215 if (id != null) { |
2216 _json["id"] = id; | 2216 _json["id"] = id; |
2217 } | 2217 } |
2218 if (items != null) { | 2218 if (items != null) { |
2219 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2219 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2220 } | 2220 } |
2221 if (kind != null) { | 2221 if (kind != null) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 selfLink = _json["selfLink"]; | 2287 selfLink = _json["selfLink"]; |
2288 } | 2288 } |
2289 if (_json.containsKey("title")) { | 2289 if (_json.containsKey("title")) { |
2290 title = _json["title"]; | 2290 title = _json["title"]; |
2291 } | 2291 } |
2292 if (_json.containsKey("totalItems")) { | 2292 if (_json.containsKey("totalItems")) { |
2293 totalItems = _json["totalItems"]; | 2293 totalItems = _json["totalItems"]; |
2294 } | 2294 } |
2295 } | 2295 } |
2296 | 2296 |
2297 core.Map toJson() { | 2297 core.Map<core.String, core.Object> toJson() { |
2298 var _json = new core.Map(); | 2298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2299 if (etag != null) { | 2299 if (etag != null) { |
2300 _json["etag"] = etag; | 2300 _json["etag"] = etag; |
2301 } | 2301 } |
2302 if (items != null) { | 2302 if (items != null) { |
2303 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2303 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2304 } | 2304 } |
2305 if (kind != null) { | 2305 if (kind != null) { |
2306 _json["kind"] = kind; | 2306 _json["kind"] = kind; |
2307 } | 2307 } |
2308 if (nextPageToken != null) { | 2308 if (nextPageToken != null) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2346 | 2346 |
2347 PersonAgeRange.fromJson(core.Map _json) { | 2347 PersonAgeRange.fromJson(core.Map _json) { |
2348 if (_json.containsKey("max")) { | 2348 if (_json.containsKey("max")) { |
2349 max = _json["max"]; | 2349 max = _json["max"]; |
2350 } | 2350 } |
2351 if (_json.containsKey("min")) { | 2351 if (_json.containsKey("min")) { |
2352 min = _json["min"]; | 2352 min = _json["min"]; |
2353 } | 2353 } |
2354 } | 2354 } |
2355 | 2355 |
2356 core.Map toJson() { | 2356 core.Map<core.String, core.Object> toJson() { |
2357 var _json = new core.Map(); | 2357 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2358 if (max != null) { | 2358 if (max != null) { |
2359 _json["max"] = max; | 2359 _json["max"] = max; |
2360 } | 2360 } |
2361 if (min != null) { | 2361 if (min != null) { |
2362 _json["min"] = min; | 2362 _json["min"] = min; |
2363 } | 2363 } |
2364 return _json; | 2364 return _json; |
2365 } | 2365 } |
2366 } | 2366 } |
2367 | 2367 |
(...skipping 14 matching lines...) Expand all Loading... |
2382 | 2382 |
2383 PersonCoverCoverInfo.fromJson(core.Map _json) { | 2383 PersonCoverCoverInfo.fromJson(core.Map _json) { |
2384 if (_json.containsKey("leftImageOffset")) { | 2384 if (_json.containsKey("leftImageOffset")) { |
2385 leftImageOffset = _json["leftImageOffset"]; | 2385 leftImageOffset = _json["leftImageOffset"]; |
2386 } | 2386 } |
2387 if (_json.containsKey("topImageOffset")) { | 2387 if (_json.containsKey("topImageOffset")) { |
2388 topImageOffset = _json["topImageOffset"]; | 2388 topImageOffset = _json["topImageOffset"]; |
2389 } | 2389 } |
2390 } | 2390 } |
2391 | 2391 |
2392 core.Map toJson() { | 2392 core.Map<core.String, core.Object> toJson() { |
2393 var _json = new core.Map(); | 2393 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2394 if (leftImageOffset != null) { | 2394 if (leftImageOffset != null) { |
2395 _json["leftImageOffset"] = leftImageOffset; | 2395 _json["leftImageOffset"] = leftImageOffset; |
2396 } | 2396 } |
2397 if (topImageOffset != null) { | 2397 if (topImageOffset != null) { |
2398 _json["topImageOffset"] = topImageOffset; | 2398 _json["topImageOffset"] = topImageOffset; |
2399 } | 2399 } |
2400 return _json; | 2400 return _json; |
2401 } | 2401 } |
2402 } | 2402 } |
2403 | 2403 |
(...skipping 13 matching lines...) Expand all Loading... |
2417 height = _json["height"]; | 2417 height = _json["height"]; |
2418 } | 2418 } |
2419 if (_json.containsKey("url")) { | 2419 if (_json.containsKey("url")) { |
2420 url = _json["url"]; | 2420 url = _json["url"]; |
2421 } | 2421 } |
2422 if (_json.containsKey("width")) { | 2422 if (_json.containsKey("width")) { |
2423 width = _json["width"]; | 2423 width = _json["width"]; |
2424 } | 2424 } |
2425 } | 2425 } |
2426 | 2426 |
2427 core.Map toJson() { | 2427 core.Map<core.String, core.Object> toJson() { |
2428 var _json = new core.Map(); | 2428 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2429 if (height != null) { | 2429 if (height != null) { |
2430 _json["height"] = height; | 2430 _json["height"] = height; |
2431 } | 2431 } |
2432 if (url != null) { | 2432 if (url != null) { |
2433 _json["url"] = url; | 2433 _json["url"] = url; |
2434 } | 2434 } |
2435 if (width != null) { | 2435 if (width != null) { |
2436 _json["width"] = width; | 2436 _json["width"] = width; |
2437 } | 2437 } |
2438 return _json; | 2438 return _json; |
(...skipping 20 matching lines...) Expand all Loading... |
2459 coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]); | 2459 coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]); |
2460 } | 2460 } |
2461 if (_json.containsKey("coverPhoto")) { | 2461 if (_json.containsKey("coverPhoto")) { |
2462 coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]); | 2462 coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]); |
2463 } | 2463 } |
2464 if (_json.containsKey("layout")) { | 2464 if (_json.containsKey("layout")) { |
2465 layout = _json["layout"]; | 2465 layout = _json["layout"]; |
2466 } | 2466 } |
2467 } | 2467 } |
2468 | 2468 |
2469 core.Map toJson() { | 2469 core.Map<core.String, core.Object> toJson() { |
2470 var _json = new core.Map(); | 2470 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2471 if (coverInfo != null) { | 2471 if (coverInfo != null) { |
2472 _json["coverInfo"] = (coverInfo).toJson(); | 2472 _json["coverInfo"] = (coverInfo).toJson(); |
2473 } | 2473 } |
2474 if (coverPhoto != null) { | 2474 if (coverPhoto != null) { |
2475 _json["coverPhoto"] = (coverPhoto).toJson(); | 2475 _json["coverPhoto"] = (coverPhoto).toJson(); |
2476 } | 2476 } |
2477 if (layout != null) { | 2477 if (layout != null) { |
2478 _json["layout"] = layout; | 2478 _json["layout"] = layout; |
2479 } | 2479 } |
2480 return _json; | 2480 return _json; |
(...skipping 17 matching lines...) Expand all Loading... |
2498 | 2498 |
2499 PersonEmails.fromJson(core.Map _json) { | 2499 PersonEmails.fromJson(core.Map _json) { |
2500 if (_json.containsKey("type")) { | 2500 if (_json.containsKey("type")) { |
2501 type = _json["type"]; | 2501 type = _json["type"]; |
2502 } | 2502 } |
2503 if (_json.containsKey("value")) { | 2503 if (_json.containsKey("value")) { |
2504 value = _json["value"]; | 2504 value = _json["value"]; |
2505 } | 2505 } |
2506 } | 2506 } |
2507 | 2507 |
2508 core.Map toJson() { | 2508 core.Map<core.String, core.Object> toJson() { |
2509 var _json = new core.Map(); | 2509 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2510 if (type != null) { | 2510 if (type != null) { |
2511 _json["type"] = type; | 2511 _json["type"] = type; |
2512 } | 2512 } |
2513 if (value != null) { | 2513 if (value != null) { |
2514 _json["value"] = value; | 2514 _json["value"] = value; |
2515 } | 2515 } |
2516 return _json; | 2516 return _json; |
2517 } | 2517 } |
2518 } | 2518 } |
2519 | 2519 |
(...skipping 12 matching lines...) Expand all Loading... |
2532 | 2532 |
2533 PersonImage.fromJson(core.Map _json) { | 2533 PersonImage.fromJson(core.Map _json) { |
2534 if (_json.containsKey("isDefault")) { | 2534 if (_json.containsKey("isDefault")) { |
2535 isDefault = _json["isDefault"]; | 2535 isDefault = _json["isDefault"]; |
2536 } | 2536 } |
2537 if (_json.containsKey("url")) { | 2537 if (_json.containsKey("url")) { |
2538 url = _json["url"]; | 2538 url = _json["url"]; |
2539 } | 2539 } |
2540 } | 2540 } |
2541 | 2541 |
2542 core.Map toJson() { | 2542 core.Map<core.String, core.Object> toJson() { |
2543 var _json = new core.Map(); | 2543 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2544 if (isDefault != null) { | 2544 if (isDefault != null) { |
2545 _json["isDefault"] = isDefault; | 2545 _json["isDefault"] = isDefault; |
2546 } | 2546 } |
2547 if (url != null) { | 2547 if (url != null) { |
2548 _json["url"] = url; | 2548 _json["url"] = url; |
2549 } | 2549 } |
2550 return _json; | 2550 return _json; |
2551 } | 2551 } |
2552 } | 2552 } |
2553 | 2553 |
(...skipping 30 matching lines...) Expand all Loading... |
2584 honorificPrefix = _json["honorificPrefix"]; | 2584 honorificPrefix = _json["honorificPrefix"]; |
2585 } | 2585 } |
2586 if (_json.containsKey("honorificSuffix")) { | 2586 if (_json.containsKey("honorificSuffix")) { |
2587 honorificSuffix = _json["honorificSuffix"]; | 2587 honorificSuffix = _json["honorificSuffix"]; |
2588 } | 2588 } |
2589 if (_json.containsKey("middleName")) { | 2589 if (_json.containsKey("middleName")) { |
2590 middleName = _json["middleName"]; | 2590 middleName = _json["middleName"]; |
2591 } | 2591 } |
2592 } | 2592 } |
2593 | 2593 |
2594 core.Map toJson() { | 2594 core.Map<core.String, core.Object> toJson() { |
2595 var _json = new core.Map(); | 2595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2596 if (familyName != null) { | 2596 if (familyName != null) { |
2597 _json["familyName"] = familyName; | 2597 _json["familyName"] = familyName; |
2598 } | 2598 } |
2599 if (formatted != null) { | 2599 if (formatted != null) { |
2600 _json["formatted"] = formatted; | 2600 _json["formatted"] = formatted; |
2601 } | 2601 } |
2602 if (givenName != null) { | 2602 if (givenName != null) { |
2603 _json["givenName"] = givenName; | 2603 _json["givenName"] = givenName; |
2604 } | 2604 } |
2605 if (honorificPrefix != null) { | 2605 if (honorificPrefix != null) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2670 startDate = _json["startDate"]; | 2670 startDate = _json["startDate"]; |
2671 } | 2671 } |
2672 if (_json.containsKey("title")) { | 2672 if (_json.containsKey("title")) { |
2673 title = _json["title"]; | 2673 title = _json["title"]; |
2674 } | 2674 } |
2675 if (_json.containsKey("type")) { | 2675 if (_json.containsKey("type")) { |
2676 type = _json["type"]; | 2676 type = _json["type"]; |
2677 } | 2677 } |
2678 } | 2678 } |
2679 | 2679 |
2680 core.Map toJson() { | 2680 core.Map<core.String, core.Object> toJson() { |
2681 var _json = new core.Map(); | 2681 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2682 if (department != null) { | 2682 if (department != null) { |
2683 _json["department"] = department; | 2683 _json["department"] = department; |
2684 } | 2684 } |
2685 if (description != null) { | 2685 if (description != null) { |
2686 _json["description"] = description; | 2686 _json["description"] = description; |
2687 } | 2687 } |
2688 if (endDate != null) { | 2688 if (endDate != null) { |
2689 _json["endDate"] = endDate; | 2689 _json["endDate"] = endDate; |
2690 } | 2690 } |
2691 if (location != null) { | 2691 if (location != null) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2723 | 2723 |
2724 PersonPlacesLived.fromJson(core.Map _json) { | 2724 PersonPlacesLived.fromJson(core.Map _json) { |
2725 if (_json.containsKey("primary")) { | 2725 if (_json.containsKey("primary")) { |
2726 primary = _json["primary"]; | 2726 primary = _json["primary"]; |
2727 } | 2727 } |
2728 if (_json.containsKey("value")) { | 2728 if (_json.containsKey("value")) { |
2729 value = _json["value"]; | 2729 value = _json["value"]; |
2730 } | 2730 } |
2731 } | 2731 } |
2732 | 2732 |
2733 core.Map toJson() { | 2733 core.Map<core.String, core.Object> toJson() { |
2734 var _json = new core.Map(); | 2734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2735 if (primary != null) { | 2735 if (primary != null) { |
2736 _json["primary"] = primary; | 2736 _json["primary"] = primary; |
2737 } | 2737 } |
2738 if (value != null) { | 2738 if (value != null) { |
2739 _json["value"] = value; | 2739 _json["value"] = value; |
2740 } | 2740 } |
2741 return _json; | 2741 return _json; |
2742 } | 2742 } |
2743 } | 2743 } |
2744 | 2744 |
(...skipping 19 matching lines...) Expand all Loading... |
2764 label = _json["label"]; | 2764 label = _json["label"]; |
2765 } | 2765 } |
2766 if (_json.containsKey("type")) { | 2766 if (_json.containsKey("type")) { |
2767 type = _json["type"]; | 2767 type = _json["type"]; |
2768 } | 2768 } |
2769 if (_json.containsKey("value")) { | 2769 if (_json.containsKey("value")) { |
2770 value = _json["value"]; | 2770 value = _json["value"]; |
2771 } | 2771 } |
2772 } | 2772 } |
2773 | 2773 |
2774 core.Map toJson() { | 2774 core.Map<core.String, core.Object> toJson() { |
2775 var _json = new core.Map(); | 2775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2776 if (label != null) { | 2776 if (label != null) { |
2777 _json["label"] = label; | 2777 _json["label"] = label; |
2778 } | 2778 } |
2779 if (type != null) { | 2779 if (type != null) { |
2780 _json["type"] = type; | 2780 _json["type"] = type; |
2781 } | 2781 } |
2782 if (value != null) { | 2782 if (value != null) { |
2783 _json["value"] = value; | 2783 _json["value"] = value; |
2784 } | 2784 } |
2785 return _json; | 2785 return _json; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2981 url = _json["url"]; | 2981 url = _json["url"]; |
2982 } | 2982 } |
2983 if (_json.containsKey("urls")) { | 2983 if (_json.containsKey("urls")) { |
2984 urls = _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList
(); | 2984 urls = _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList
(); |
2985 } | 2985 } |
2986 if (_json.containsKey("verified")) { | 2986 if (_json.containsKey("verified")) { |
2987 verified = _json["verified"]; | 2987 verified = _json["verified"]; |
2988 } | 2988 } |
2989 } | 2989 } |
2990 | 2990 |
2991 core.Map toJson() { | 2991 core.Map<core.String, core.Object> toJson() { |
2992 var _json = new core.Map(); | 2992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2993 if (aboutMe != null) { | 2993 if (aboutMe != null) { |
2994 _json["aboutMe"] = aboutMe; | 2994 _json["aboutMe"] = aboutMe; |
2995 } | 2995 } |
2996 if (ageRange != null) { | 2996 if (ageRange != null) { |
2997 _json["ageRange"] = (ageRange).toJson(); | 2997 _json["ageRange"] = (ageRange).toJson(); |
2998 } | 2998 } |
2999 if (birthday != null) { | 2999 if (birthday != null) { |
3000 _json["birthday"] = birthday; | 3000 _json["birthday"] = birthday; |
3001 } | 3001 } |
3002 if (braggingRights != null) { | 3002 if (braggingRights != null) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3090 core.String formatted; | 3090 core.String formatted; |
3091 | 3091 |
3092 PlaceAddress(); | 3092 PlaceAddress(); |
3093 | 3093 |
3094 PlaceAddress.fromJson(core.Map _json) { | 3094 PlaceAddress.fromJson(core.Map _json) { |
3095 if (_json.containsKey("formatted")) { | 3095 if (_json.containsKey("formatted")) { |
3096 formatted = _json["formatted"]; | 3096 formatted = _json["formatted"]; |
3097 } | 3097 } |
3098 } | 3098 } |
3099 | 3099 |
3100 core.Map toJson() { | 3100 core.Map<core.String, core.Object> toJson() { |
3101 var _json = new core.Map(); | 3101 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3102 if (formatted != null) { | 3102 if (formatted != null) { |
3103 _json["formatted"] = formatted; | 3103 _json["formatted"] = formatted; |
3104 } | 3104 } |
3105 return _json; | 3105 return _json; |
3106 } | 3106 } |
3107 } | 3107 } |
3108 | 3108 |
3109 /** The position of the place. */ | 3109 /** The position of the place. */ |
3110 class PlacePosition { | 3110 class PlacePosition { |
3111 /** The latitude of this position. */ | 3111 /** The latitude of this position. */ |
3112 core.double latitude; | 3112 core.double latitude; |
3113 /** The longitude of this position. */ | 3113 /** The longitude of this position. */ |
3114 core.double longitude; | 3114 core.double longitude; |
3115 | 3115 |
3116 PlacePosition(); | 3116 PlacePosition(); |
3117 | 3117 |
3118 PlacePosition.fromJson(core.Map _json) { | 3118 PlacePosition.fromJson(core.Map _json) { |
3119 if (_json.containsKey("latitude")) { | 3119 if (_json.containsKey("latitude")) { |
3120 latitude = _json["latitude"]; | 3120 latitude = _json["latitude"]; |
3121 } | 3121 } |
3122 if (_json.containsKey("longitude")) { | 3122 if (_json.containsKey("longitude")) { |
3123 longitude = _json["longitude"]; | 3123 longitude = _json["longitude"]; |
3124 } | 3124 } |
3125 } | 3125 } |
3126 | 3126 |
3127 core.Map toJson() { | 3127 core.Map<core.String, core.Object> toJson() { |
3128 var _json = new core.Map(); | 3128 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3129 if (latitude != null) { | 3129 if (latitude != null) { |
3130 _json["latitude"] = latitude; | 3130 _json["latitude"] = latitude; |
3131 } | 3131 } |
3132 if (longitude != null) { | 3132 if (longitude != null) { |
3133 _json["longitude"] = longitude; | 3133 _json["longitude"] = longitude; |
3134 } | 3134 } |
3135 return _json; | 3135 return _json; |
3136 } | 3136 } |
3137 } | 3137 } |
3138 | 3138 |
(...skipping 22 matching lines...) Expand all Loading... |
3161 id = _json["id"]; | 3161 id = _json["id"]; |
3162 } | 3162 } |
3163 if (_json.containsKey("kind")) { | 3163 if (_json.containsKey("kind")) { |
3164 kind = _json["kind"]; | 3164 kind = _json["kind"]; |
3165 } | 3165 } |
3166 if (_json.containsKey("position")) { | 3166 if (_json.containsKey("position")) { |
3167 position = new PlacePosition.fromJson(_json["position"]); | 3167 position = new PlacePosition.fromJson(_json["position"]); |
3168 } | 3168 } |
3169 } | 3169 } |
3170 | 3170 |
3171 core.Map toJson() { | 3171 core.Map<core.String, core.Object> toJson() { |
3172 var _json = new core.Map(); | 3172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3173 if (address != null) { | 3173 if (address != null) { |
3174 _json["address"] = (address).toJson(); | 3174 _json["address"] = (address).toJson(); |
3175 } | 3175 } |
3176 if (displayName != null) { | 3176 if (displayName != null) { |
3177 _json["displayName"] = displayName; | 3177 _json["displayName"] = displayName; |
3178 } | 3178 } |
3179 if (id != null) { | 3179 if (id != null) { |
3180 _json["id"] = id; | 3180 _json["id"] = id; |
3181 } | 3181 } |
3182 if (kind != null) { | 3182 if (kind != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3217 displayName = _json["displayName"]; | 3217 displayName = _json["displayName"]; |
3218 } | 3218 } |
3219 if (_json.containsKey("id")) { | 3219 if (_json.containsKey("id")) { |
3220 id = _json["id"]; | 3220 id = _json["id"]; |
3221 } | 3221 } |
3222 if (_json.containsKey("type")) { | 3222 if (_json.containsKey("type")) { |
3223 type = _json["type"]; | 3223 type = _json["type"]; |
3224 } | 3224 } |
3225 } | 3225 } |
3226 | 3226 |
3227 core.Map toJson() { | 3227 core.Map<core.String, core.Object> toJson() { |
3228 var _json = new core.Map(); | 3228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3229 if (displayName != null) { | 3229 if (displayName != null) { |
3230 _json["displayName"] = displayName; | 3230 _json["displayName"] = displayName; |
3231 } | 3231 } |
3232 if (id != null) { | 3232 if (id != null) { |
3233 _json["id"] = id; | 3233 _json["id"] = id; |
3234 } | 3234 } |
3235 if (type != null) { | 3235 if (type != null) { |
3236 _json["type"] = type; | 3236 _json["type"] = type; |
3237 } | 3237 } |
3238 return _json; | 3238 return _json; |
3239 } | 3239 } |
3240 } | 3240 } |
OLD | NEW |