| 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.gamesConfiguration.v1configuration; | 3 library googleapis.gamesConfiguration.v1configuration; |
| 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 published = new AchievementConfigurationDetail.fromJson(_json["published"]
); | 708 published = new AchievementConfigurationDetail.fromJson(_json["published"]
); |
| 709 } | 709 } |
| 710 if (_json.containsKey("stepsToUnlock")) { | 710 if (_json.containsKey("stepsToUnlock")) { |
| 711 stepsToUnlock = _json["stepsToUnlock"]; | 711 stepsToUnlock = _json["stepsToUnlock"]; |
| 712 } | 712 } |
| 713 if (_json.containsKey("token")) { | 713 if (_json.containsKey("token")) { |
| 714 token = _json["token"]; | 714 token = _json["token"]; |
| 715 } | 715 } |
| 716 } | 716 } |
| 717 | 717 |
| 718 core.Map toJson() { | 718 core.Map<core.String, core.Object> toJson() { |
| 719 var _json = new core.Map(); | 719 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 720 if (achievementType != null) { | 720 if (achievementType != null) { |
| 721 _json["achievementType"] = achievementType; | 721 _json["achievementType"] = achievementType; |
| 722 } | 722 } |
| 723 if (draft != null) { | 723 if (draft != null) { |
| 724 _json["draft"] = (draft).toJson(); | 724 _json["draft"] = (draft).toJson(); |
| 725 } | 725 } |
| 726 if (id != null) { | 726 if (id != null) { |
| 727 _json["id"] = id; | 727 _json["id"] = id; |
| 728 } | 728 } |
| 729 if (initialState != null) { | 729 if (initialState != null) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 name = new LocalizedStringBundle.fromJson(_json["name"]); | 779 name = new LocalizedStringBundle.fromJson(_json["name"]); |
| 780 } | 780 } |
| 781 if (_json.containsKey("pointValue")) { | 781 if (_json.containsKey("pointValue")) { |
| 782 pointValue = _json["pointValue"]; | 782 pointValue = _json["pointValue"]; |
| 783 } | 783 } |
| 784 if (_json.containsKey("sortRank")) { | 784 if (_json.containsKey("sortRank")) { |
| 785 sortRank = _json["sortRank"]; | 785 sortRank = _json["sortRank"]; |
| 786 } | 786 } |
| 787 } | 787 } |
| 788 | 788 |
| 789 core.Map toJson() { | 789 core.Map<core.String, core.Object> toJson() { |
| 790 var _json = new core.Map(); | 790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 791 if (description != null) { | 791 if (description != null) { |
| 792 _json["description"] = (description).toJson(); | 792 _json["description"] = (description).toJson(); |
| 793 } | 793 } |
| 794 if (iconUrl != null) { | 794 if (iconUrl != null) { |
| 795 _json["iconUrl"] = iconUrl; | 795 _json["iconUrl"] = iconUrl; |
| 796 } | 796 } |
| 797 if (kind != null) { | 797 if (kind != null) { |
| 798 _json["kind"] = kind; | 798 _json["kind"] = kind; |
| 799 } | 799 } |
| 800 if (name != null) { | 800 if (name != null) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 829 items = _json["items"].map((value) => new AchievementConfiguration.fromJso
n(value)).toList(); | 829 items = _json["items"].map((value) => new AchievementConfiguration.fromJso
n(value)).toList(); |
| 830 } | 830 } |
| 831 if (_json.containsKey("kind")) { | 831 if (_json.containsKey("kind")) { |
| 832 kind = _json["kind"]; | 832 kind = _json["kind"]; |
| 833 } | 833 } |
| 834 if (_json.containsKey("nextPageToken")) { | 834 if (_json.containsKey("nextPageToken")) { |
| 835 nextPageToken = _json["nextPageToken"]; | 835 nextPageToken = _json["nextPageToken"]; |
| 836 } | 836 } |
| 837 } | 837 } |
| 838 | 838 |
| 839 core.Map toJson() { | 839 core.Map<core.String, core.Object> toJson() { |
| 840 var _json = new core.Map(); | 840 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 841 if (items != null) { | 841 if (items != null) { |
| 842 _json["items"] = items.map((value) => (value).toJson()).toList(); | 842 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 843 } | 843 } |
| 844 if (kind != null) { | 844 if (kind != null) { |
| 845 _json["kind"] = kind; | 845 _json["kind"] = kind; |
| 846 } | 846 } |
| 847 if (nextPageToken != null) { | 847 if (nextPageToken != null) { |
| 848 _json["nextPageToken"] = nextPageToken; | 848 _json["nextPageToken"] = nextPageToken; |
| 849 } | 849 } |
| 850 return _json; | 850 return _json; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 other = new LocalizedStringBundle.fromJson(_json["other"]); | 902 other = new LocalizedStringBundle.fromJson(_json["other"]); |
| 903 } | 903 } |
| 904 if (_json.containsKey("two")) { | 904 if (_json.containsKey("two")) { |
| 905 two = new LocalizedStringBundle.fromJson(_json["two"]); | 905 two = new LocalizedStringBundle.fromJson(_json["two"]); |
| 906 } | 906 } |
| 907 if (_json.containsKey("zero")) { | 907 if (_json.containsKey("zero")) { |
| 908 zero = new LocalizedStringBundle.fromJson(_json["zero"]); | 908 zero = new LocalizedStringBundle.fromJson(_json["zero"]); |
| 909 } | 909 } |
| 910 } | 910 } |
| 911 | 911 |
| 912 core.Map toJson() { | 912 core.Map<core.String, core.Object> toJson() { |
| 913 var _json = new core.Map(); | 913 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 914 if (few != null) { | 914 if (few != null) { |
| 915 _json["few"] = (few).toJson(); | 915 _json["few"] = (few).toJson(); |
| 916 } | 916 } |
| 917 if (many != null) { | 917 if (many != null) { |
| 918 _json["many"] = (many).toJson(); | 918 _json["many"] = (many).toJson(); |
| 919 } | 919 } |
| 920 if (one != null) { | 920 if (one != null) { |
| 921 _json["one"] = (one).toJson(); | 921 _json["one"] = (one).toJson(); |
| 922 } | 922 } |
| 923 if (other != null) { | 923 if (other != null) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 numDecimalPlaces = _json["numDecimalPlaces"]; | 967 numDecimalPlaces = _json["numDecimalPlaces"]; |
| 968 } | 968 } |
| 969 if (_json.containsKey("numberFormatType")) { | 969 if (_json.containsKey("numberFormatType")) { |
| 970 numberFormatType = _json["numberFormatType"]; | 970 numberFormatType = _json["numberFormatType"]; |
| 971 } | 971 } |
| 972 if (_json.containsKey("suffix")) { | 972 if (_json.containsKey("suffix")) { |
| 973 suffix = new GamesNumberAffixConfiguration.fromJson(_json["suffix"]); | 973 suffix = new GamesNumberAffixConfiguration.fromJson(_json["suffix"]); |
| 974 } | 974 } |
| 975 } | 975 } |
| 976 | 976 |
| 977 core.Map toJson() { | 977 core.Map<core.String, core.Object> toJson() { |
| 978 var _json = new core.Map(); | 978 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 979 if (currencyCode != null) { | 979 if (currencyCode != null) { |
| 980 _json["currencyCode"] = currencyCode; | 980 _json["currencyCode"] = currencyCode; |
| 981 } | 981 } |
| 982 if (numDecimalPlaces != null) { | 982 if (numDecimalPlaces != null) { |
| 983 _json["numDecimalPlaces"] = numDecimalPlaces; | 983 _json["numDecimalPlaces"] = numDecimalPlaces; |
| 984 } | 984 } |
| 985 if (numberFormatType != null) { | 985 if (numberFormatType != null) { |
| 986 _json["numberFormatType"] = numberFormatType; | 986 _json["numberFormatType"] = numberFormatType; |
| 987 } | 987 } |
| 988 if (suffix != null) { | 988 if (suffix != null) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1016 kind = _json["kind"]; | 1016 kind = _json["kind"]; |
| 1017 } | 1017 } |
| 1018 if (_json.containsKey("resourceId")) { | 1018 if (_json.containsKey("resourceId")) { |
| 1019 resourceId = _json["resourceId"]; | 1019 resourceId = _json["resourceId"]; |
| 1020 } | 1020 } |
| 1021 if (_json.containsKey("url")) { | 1021 if (_json.containsKey("url")) { |
| 1022 url = _json["url"]; | 1022 url = _json["url"]; |
| 1023 } | 1023 } |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 core.Map toJson() { | 1026 core.Map<core.String, core.Object> toJson() { |
| 1027 var _json = new core.Map(); | 1027 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1028 if (imageType != null) { | 1028 if (imageType != null) { |
| 1029 _json["imageType"] = imageType; | 1029 _json["imageType"] = imageType; |
| 1030 } | 1030 } |
| 1031 if (kind != null) { | 1031 if (kind != null) { |
| 1032 _json["kind"] = kind; | 1032 _json["kind"] = kind; |
| 1033 } | 1033 } |
| 1034 if (resourceId != null) { | 1034 if (resourceId != null) { |
| 1035 _json["resourceId"] = resourceId; | 1035 _json["resourceId"] = resourceId; |
| 1036 } | 1036 } |
| 1037 if (url != null) { | 1037 if (url != null) { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 scoreMin = _json["scoreMin"]; | 1090 scoreMin = _json["scoreMin"]; |
| 1091 } | 1091 } |
| 1092 if (_json.containsKey("scoreOrder")) { | 1092 if (_json.containsKey("scoreOrder")) { |
| 1093 scoreOrder = _json["scoreOrder"]; | 1093 scoreOrder = _json["scoreOrder"]; |
| 1094 } | 1094 } |
| 1095 if (_json.containsKey("token")) { | 1095 if (_json.containsKey("token")) { |
| 1096 token = _json["token"]; | 1096 token = _json["token"]; |
| 1097 } | 1097 } |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 core.Map toJson() { | 1100 core.Map<core.String, core.Object> toJson() { |
| 1101 var _json = new core.Map(); | 1101 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1102 if (draft != null) { | 1102 if (draft != null) { |
| 1103 _json["draft"] = (draft).toJson(); | 1103 _json["draft"] = (draft).toJson(); |
| 1104 } | 1104 } |
| 1105 if (id != null) { | 1105 if (id != null) { |
| 1106 _json["id"] = id; | 1106 _json["id"] = id; |
| 1107 } | 1107 } |
| 1108 if (kind != null) { | 1108 if (kind != null) { |
| 1109 _json["kind"] = kind; | 1109 _json["kind"] = kind; |
| 1110 } | 1110 } |
| 1111 if (published != null) { | 1111 if (published != null) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 name = new LocalizedStringBundle.fromJson(_json["name"]); | 1156 name = new LocalizedStringBundle.fromJson(_json["name"]); |
| 1157 } | 1157 } |
| 1158 if (_json.containsKey("scoreFormat")) { | 1158 if (_json.containsKey("scoreFormat")) { |
| 1159 scoreFormat = new GamesNumberFormatConfiguration.fromJson(_json["scoreForm
at"]); | 1159 scoreFormat = new GamesNumberFormatConfiguration.fromJson(_json["scoreForm
at"]); |
| 1160 } | 1160 } |
| 1161 if (_json.containsKey("sortRank")) { | 1161 if (_json.containsKey("sortRank")) { |
| 1162 sortRank = _json["sortRank"]; | 1162 sortRank = _json["sortRank"]; |
| 1163 } | 1163 } |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 core.Map toJson() { | 1166 core.Map<core.String, core.Object> toJson() { |
| 1167 var _json = new core.Map(); | 1167 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1168 if (iconUrl != null) { | 1168 if (iconUrl != null) { |
| 1169 _json["iconUrl"] = iconUrl; | 1169 _json["iconUrl"] = iconUrl; |
| 1170 } | 1170 } |
| 1171 if (kind != null) { | 1171 if (kind != null) { |
| 1172 _json["kind"] = kind; | 1172 _json["kind"] = kind; |
| 1173 } | 1173 } |
| 1174 if (name != null) { | 1174 if (name != null) { |
| 1175 _json["name"] = (name).toJson(); | 1175 _json["name"] = (name).toJson(); |
| 1176 } | 1176 } |
| 1177 if (scoreFormat != null) { | 1177 if (scoreFormat != null) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1203 items = _json["items"].map((value) => new LeaderboardConfiguration.fromJso
n(value)).toList(); | 1203 items = _json["items"].map((value) => new LeaderboardConfiguration.fromJso
n(value)).toList(); |
| 1204 } | 1204 } |
| 1205 if (_json.containsKey("kind")) { | 1205 if (_json.containsKey("kind")) { |
| 1206 kind = _json["kind"]; | 1206 kind = _json["kind"]; |
| 1207 } | 1207 } |
| 1208 if (_json.containsKey("nextPageToken")) { | 1208 if (_json.containsKey("nextPageToken")) { |
| 1209 nextPageToken = _json["nextPageToken"]; | 1209 nextPageToken = _json["nextPageToken"]; |
| 1210 } | 1210 } |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 core.Map toJson() { | 1213 core.Map<core.String, core.Object> toJson() { |
| 1214 var _json = new core.Map(); | 1214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1215 if (items != null) { | 1215 if (items != null) { |
| 1216 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1216 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1217 } | 1217 } |
| 1218 if (kind != null) { | 1218 if (kind != null) { |
| 1219 _json["kind"] = kind; | 1219 _json["kind"] = kind; |
| 1220 } | 1220 } |
| 1221 if (nextPageToken != null) { | 1221 if (nextPageToken != null) { |
| 1222 _json["nextPageToken"] = nextPageToken; | 1222 _json["nextPageToken"] = nextPageToken; |
| 1223 } | 1223 } |
| 1224 return _json; | 1224 return _json; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1244 kind = _json["kind"]; | 1244 kind = _json["kind"]; |
| 1245 } | 1245 } |
| 1246 if (_json.containsKey("locale")) { | 1246 if (_json.containsKey("locale")) { |
| 1247 locale = _json["locale"]; | 1247 locale = _json["locale"]; |
| 1248 } | 1248 } |
| 1249 if (_json.containsKey("value")) { | 1249 if (_json.containsKey("value")) { |
| 1250 value = _json["value"]; | 1250 value = _json["value"]; |
| 1251 } | 1251 } |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 core.Map toJson() { | 1254 core.Map<core.String, core.Object> toJson() { |
| 1255 var _json = new core.Map(); | 1255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1256 if (kind != null) { | 1256 if (kind != null) { |
| 1257 _json["kind"] = kind; | 1257 _json["kind"] = kind; |
| 1258 } | 1258 } |
| 1259 if (locale != null) { | 1259 if (locale != null) { |
| 1260 _json["locale"] = locale; | 1260 _json["locale"] = locale; |
| 1261 } | 1261 } |
| 1262 if (value != null) { | 1262 if (value != null) { |
| 1263 _json["value"] = value; | 1263 _json["value"] = value; |
| 1264 } | 1264 } |
| 1265 return _json; | 1265 return _json; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1280 | 1280 |
| 1281 LocalizedStringBundle.fromJson(core.Map _json) { | 1281 LocalizedStringBundle.fromJson(core.Map _json) { |
| 1282 if (_json.containsKey("kind")) { | 1282 if (_json.containsKey("kind")) { |
| 1283 kind = _json["kind"]; | 1283 kind = _json["kind"]; |
| 1284 } | 1284 } |
| 1285 if (_json.containsKey("translations")) { | 1285 if (_json.containsKey("translations")) { |
| 1286 translations = _json["translations"].map((value) => new LocalizedString.fr
omJson(value)).toList(); | 1286 translations = _json["translations"].map((value) => new LocalizedString.fr
omJson(value)).toList(); |
| 1287 } | 1287 } |
| 1288 } | 1288 } |
| 1289 | 1289 |
| 1290 core.Map toJson() { | 1290 core.Map<core.String, core.Object> toJson() { |
| 1291 var _json = new core.Map(); | 1291 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1292 if (kind != null) { | 1292 if (kind != null) { |
| 1293 _json["kind"] = kind; | 1293 _json["kind"] = kind; |
| 1294 } | 1294 } |
| 1295 if (translations != null) { | 1295 if (translations != null) { |
| 1296 _json["translations"] = translations.map((value) => (value).toJson()).toLi
st(); | 1296 _json["translations"] = translations.map((value) => (value).toJson()).toLi
st(); |
| 1297 } | 1297 } |
| 1298 return _json; | 1298 return _json; |
| 1299 } | 1299 } |
| 1300 } | 1300 } |
| OLD | NEW |