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

Side by Side Diff: generated/googleapis/lib/youtubeanalytics/v1.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.youtubeAnalytics.v1; 3 library googleapis.youtubeAnalytics.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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 622
623 GroupContentDetails.fromJson(core.Map _json) { 623 GroupContentDetails.fromJson(core.Map _json) {
624 if (_json.containsKey("itemCount")) { 624 if (_json.containsKey("itemCount")) {
625 itemCount = _json["itemCount"]; 625 itemCount = _json["itemCount"];
626 } 626 }
627 if (_json.containsKey("itemType")) { 627 if (_json.containsKey("itemType")) {
628 itemType = _json["itemType"]; 628 itemType = _json["itemType"];
629 } 629 }
630 } 630 }
631 631
632 core.Map toJson() { 632 core.Map<core.String, core.Object> toJson() {
633 var _json = new core.Map(); 633 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
634 if (itemCount != null) { 634 if (itemCount != null) {
635 _json["itemCount"] = itemCount; 635 _json["itemCount"] = itemCount;
636 } 636 }
637 if (itemType != null) { 637 if (itemType != null) {
638 _json["itemType"] = itemType; 638 _json["itemType"] = itemType;
639 } 639 }
640 return _json; 640 return _json;
641 } 641 }
642 } 642 }
643 643
644 class GroupSnippet { 644 class GroupSnippet {
645 core.DateTime publishedAt; 645 core.DateTime publishedAt;
646 core.String title; 646 core.String title;
647 647
648 GroupSnippet(); 648 GroupSnippet();
649 649
650 GroupSnippet.fromJson(core.Map _json) { 650 GroupSnippet.fromJson(core.Map _json) {
651 if (_json.containsKey("publishedAt")) { 651 if (_json.containsKey("publishedAt")) {
652 publishedAt = core.DateTime.parse(_json["publishedAt"]); 652 publishedAt = core.DateTime.parse(_json["publishedAt"]);
653 } 653 }
654 if (_json.containsKey("title")) { 654 if (_json.containsKey("title")) {
655 title = _json["title"]; 655 title = _json["title"];
656 } 656 }
657 } 657 }
658 658
659 core.Map toJson() { 659 core.Map<core.String, core.Object> toJson() {
660 var _json = new core.Map(); 660 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
661 if (publishedAt != null) { 661 if (publishedAt != null) {
662 _json["publishedAt"] = (publishedAt).toIso8601String(); 662 _json["publishedAt"] = (publishedAt).toIso8601String();
663 } 663 }
664 if (title != null) { 664 if (title != null) {
665 _json["title"] = title; 665 _json["title"] = title;
666 } 666 }
667 return _json; 667 return _json;
668 } 668 }
669 } 669 }
670 670
(...skipping 17 matching lines...) Expand all
688 id = _json["id"]; 688 id = _json["id"];
689 } 689 }
690 if (_json.containsKey("kind")) { 690 if (_json.containsKey("kind")) {
691 kind = _json["kind"]; 691 kind = _json["kind"];
692 } 692 }
693 if (_json.containsKey("snippet")) { 693 if (_json.containsKey("snippet")) {
694 snippet = new GroupSnippet.fromJson(_json["snippet"]); 694 snippet = new GroupSnippet.fromJson(_json["snippet"]);
695 } 695 }
696 } 696 }
697 697
698 core.Map toJson() { 698 core.Map<core.String, core.Object> toJson() {
699 var _json = new core.Map(); 699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
700 if (contentDetails != null) { 700 if (contentDetails != null) {
701 _json["contentDetails"] = (contentDetails).toJson(); 701 _json["contentDetails"] = (contentDetails).toJson();
702 } 702 }
703 if (etag != null) { 703 if (etag != null) {
704 _json["etag"] = etag; 704 _json["etag"] = etag;
705 } 705 }
706 if (id != null) { 706 if (id != null) {
707 _json["id"] = id; 707 _json["id"] = id;
708 } 708 }
709 if (kind != null) { 709 if (kind != null) {
(...skipping 14 matching lines...) Expand all
724 724
725 GroupItemResource.fromJson(core.Map _json) { 725 GroupItemResource.fromJson(core.Map _json) {
726 if (_json.containsKey("id")) { 726 if (_json.containsKey("id")) {
727 id = _json["id"]; 727 id = _json["id"];
728 } 728 }
729 if (_json.containsKey("kind")) { 729 if (_json.containsKey("kind")) {
730 kind = _json["kind"]; 730 kind = _json["kind"];
731 } 731 }
732 } 732 }
733 733
734 core.Map toJson() { 734 core.Map<core.String, core.Object> toJson() {
735 var _json = new core.Map(); 735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
736 if (id != null) { 736 if (id != null) {
737 _json["id"] = id; 737 _json["id"] = id;
738 } 738 }
739 if (kind != null) { 739 if (kind != null) {
740 _json["kind"] = kind; 740 _json["kind"] = kind;
741 } 741 }
742 return _json; 742 return _json;
743 } 743 }
744 } 744 }
745 745
(...skipping 17 matching lines...) Expand all
763 id = _json["id"]; 763 id = _json["id"];
764 } 764 }
765 if (_json.containsKey("kind")) { 765 if (_json.containsKey("kind")) {
766 kind = _json["kind"]; 766 kind = _json["kind"];
767 } 767 }
768 if (_json.containsKey("resource")) { 768 if (_json.containsKey("resource")) {
769 resource = new GroupItemResource.fromJson(_json["resource"]); 769 resource = new GroupItemResource.fromJson(_json["resource"]);
770 } 770 }
771 } 771 }
772 772
773 core.Map toJson() { 773 core.Map<core.String, core.Object> toJson() {
774 var _json = new core.Map(); 774 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
775 if (etag != null) { 775 if (etag != null) {
776 _json["etag"] = etag; 776 _json["etag"] = etag;
777 } 777 }
778 if (groupId != null) { 778 if (groupId != null) {
779 _json["groupId"] = groupId; 779 _json["groupId"] = groupId;
780 } 780 }
781 if (id != null) { 781 if (id != null) {
782 _json["id"] = id; 782 _json["id"] = id;
783 } 783 }
784 if (kind != null) { 784 if (kind != null) {
(...skipping 22 matching lines...) Expand all
807 etag = _json["etag"]; 807 etag = _json["etag"];
808 } 808 }
809 if (_json.containsKey("items")) { 809 if (_json.containsKey("items")) {
810 items = _json["items"].map((value) => new GroupItem.fromJson(value)).toLis t(); 810 items = _json["items"].map((value) => new GroupItem.fromJson(value)).toLis t();
811 } 811 }
812 if (_json.containsKey("kind")) { 812 if (_json.containsKey("kind")) {
813 kind = _json["kind"]; 813 kind = _json["kind"];
814 } 814 }
815 } 815 }
816 816
817 core.Map toJson() { 817 core.Map<core.String, core.Object> toJson() {
818 var _json = new core.Map(); 818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
819 if (etag != null) { 819 if (etag != null) {
820 _json["etag"] = etag; 820 _json["etag"] = etag;
821 } 821 }
822 if (items != null) { 822 if (items != null) {
823 _json["items"] = items.map((value) => (value).toJson()).toList(); 823 _json["items"] = items.map((value) => (value).toJson()).toList();
824 } 824 }
825 if (kind != null) { 825 if (kind != null) {
826 _json["kind"] = kind; 826 _json["kind"] = kind;
827 } 827 }
828 return _json; 828 return _json;
(...skipping 20 matching lines...) Expand all
849 items = _json["items"].map((value) => new Group.fromJson(value)).toList(); 849 items = _json["items"].map((value) => new Group.fromJson(value)).toList();
850 } 850 }
851 if (_json.containsKey("kind")) { 851 if (_json.containsKey("kind")) {
852 kind = _json["kind"]; 852 kind = _json["kind"];
853 } 853 }
854 if (_json.containsKey("nextPageToken")) { 854 if (_json.containsKey("nextPageToken")) {
855 nextPageToken = _json["nextPageToken"]; 855 nextPageToken = _json["nextPageToken"];
856 } 856 }
857 } 857 }
858 858
859 core.Map toJson() { 859 core.Map<core.String, core.Object> toJson() {
860 var _json = new core.Map(); 860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
861 if (etag != null) { 861 if (etag != null) {
862 _json["etag"] = etag; 862 _json["etag"] = etag;
863 } 863 }
864 if (items != null) { 864 if (items != null) {
865 _json["items"] = items.map((value) => (value).toJson()).toList(); 865 _json["items"] = items.map((value) => (value).toJson()).toList();
866 } 866 }
867 if (kind != null) { 867 if (kind != null) {
868 _json["kind"] = kind; 868 _json["kind"] = kind;
869 } 869 }
870 if (nextPageToken != null) { 870 if (nextPageToken != null) {
(...skipping 18 matching lines...) Expand all
889 columnType = _json["columnType"]; 889 columnType = _json["columnType"];
890 } 890 }
891 if (_json.containsKey("dataType")) { 891 if (_json.containsKey("dataType")) {
892 dataType = _json["dataType"]; 892 dataType = _json["dataType"];
893 } 893 }
894 if (_json.containsKey("name")) { 894 if (_json.containsKey("name")) {
895 name = _json["name"]; 895 name = _json["name"];
896 } 896 }
897 } 897 }
898 898
899 core.Map toJson() { 899 core.Map<core.String, core.Object> toJson() {
900 var _json = new core.Map(); 900 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
901 if (columnType != null) { 901 if (columnType != null) {
902 _json["columnType"] = columnType; 902 _json["columnType"] = columnType;
903 } 903 }
904 if (dataType != null) { 904 if (dataType != null) {
905 _json["dataType"] = dataType; 905 _json["dataType"] = dataType;
906 } 906 }
907 if (name != null) { 907 if (name != null) {
908 _json["name"] = name; 908 _json["name"] = name;
909 } 909 }
910 return _json; 910 return _json;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 columnHeaders = _json["columnHeaders"].map((value) => new ResultTableColum nHeaders.fromJson(value)).toList(); 956 columnHeaders = _json["columnHeaders"].map((value) => new ResultTableColum nHeaders.fromJson(value)).toList();
957 } 957 }
958 if (_json.containsKey("kind")) { 958 if (_json.containsKey("kind")) {
959 kind = _json["kind"]; 959 kind = _json["kind"];
960 } 960 }
961 if (_json.containsKey("rows")) { 961 if (_json.containsKey("rows")) {
962 rows = _json["rows"]; 962 rows = _json["rows"];
963 } 963 }
964 } 964 }
965 965
966 core.Map toJson() { 966 core.Map<core.String, core.Object> toJson() {
967 var _json = new core.Map(); 967 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
968 if (columnHeaders != null) { 968 if (columnHeaders != null) {
969 _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).to List(); 969 _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).to List();
970 } 970 }
971 if (kind != null) { 971 if (kind != null) {
972 _json["kind"] = kind; 972 _json["kind"] = kind;
973 } 973 }
974 if (rows != null) { 974 if (rows != null) {
975 _json["rows"] = rows; 975 _json["rows"] = rows;
976 } 976 }
977 return _json; 977 return _json;
978 } 978 }
979 } 979 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/youtube/v3.dart ('k') | generated/googleapis/lib/youtubereporting/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698