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.firebasedynamiclinks.v1; | 3 library googleapis.firebasedynamiclinks.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; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client firebasedynamiclinks/v1'; | 15 const core.String USER_AGENT = 'dart-api-client firebasedynamiclinks/v1'; |
16 | 16 |
17 /** Programmatically creates and manages Firebase Dynamic Links. */ | 17 /** Programmatically creates and manages Firebase Dynamic Links. */ |
18 class FirebasedynamiclinksApi { | 18 class FirebasedynamiclinksApi { |
19 /** View and administer all your Firebase data and settings */ | 19 /** View and administer all your Firebase data and settings */ |
20 static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; | 20 static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; |
21 | 21 |
22 | 22 |
23 final commons.ApiRequester _requester; | 23 final commons.ApiRequester _requester; |
24 | 24 |
25 ShortLinksResourceApi get shortLinks => new ShortLinksResourceApi(_requester); | 25 ShortLinksResourceApi get shortLinks => new ShortLinksResourceApi(_requester); |
| 26 V1ResourceApi get v1 => new V1ResourceApi(_requester); |
26 | 27 |
27 FirebasedynamiclinksApi(http.Client client, {core.String rootUrl: "https://fir
ebasedynamiclinks.googleapis.com/", core.String servicePath: ""}) : | 28 FirebasedynamiclinksApi(http.Client client, {core.String rootUrl: "https://fir
ebasedynamiclinks.googleapis.com/", core.String servicePath: ""}) : |
28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 29 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
29 } | 30 } |
30 | 31 |
31 | 32 |
32 class ShortLinksResourceApi { | 33 class ShortLinksResourceApi { |
33 final commons.ApiRequester _requester; | 34 final commons.ApiRequester _requester; |
34 | 35 |
35 ShortLinksResourceApi(commons.ApiRequester client) : | 36 ShortLinksResourceApi(commons.ApiRequester client) : |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 queryParams: _queryParams, | 79 queryParams: _queryParams, |
79 uploadOptions: _uploadOptions, | 80 uploadOptions: _uploadOptions, |
80 uploadMedia: _uploadMedia, | 81 uploadMedia: _uploadMedia, |
81 downloadOptions: _downloadOptions); | 82 downloadOptions: _downloadOptions); |
82 return _response.then((data) => new CreateShortDynamicLinkResponse.fromJson(
data)); | 83 return _response.then((data) => new CreateShortDynamicLinkResponse.fromJson(
data)); |
83 } | 84 } |
84 | 85 |
85 } | 86 } |
86 | 87 |
87 | 88 |
| 89 class V1ResourceApi { |
| 90 final commons.ApiRequester _requester; |
| 91 |
| 92 V1ResourceApi(commons.ApiRequester client) : |
| 93 _requester = client; |
| 94 |
| 95 /** |
| 96 * Fetches analytics stats of a short Dynamic Link for a given |
| 97 * duration. Metrics include number of clicks, redirects, installs, |
| 98 * app first opens, and app reopens. |
| 99 * |
| 100 * Request parameters: |
| 101 * |
| 102 * [dynamicLink] - Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz |
| 103 * |
| 104 * [durationDays] - The span of time requested in days. |
| 105 * |
| 106 * Completes with a [DynamicLinkStats]. |
| 107 * |
| 108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 109 * error. |
| 110 * |
| 111 * If the used [http.Client] completes with an error when making a REST call, |
| 112 * this method will complete with the same error. |
| 113 */ |
| 114 async.Future<DynamicLinkStats> getLinkStats(core.String dynamicLink, {core.Str
ing durationDays}) { |
| 115 var _url = null; |
| 116 var _queryParams = new core.Map(); |
| 117 var _uploadMedia = null; |
| 118 var _uploadOptions = null; |
| 119 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 120 var _body = null; |
| 121 |
| 122 if (dynamicLink == null) { |
| 123 throw new core.ArgumentError("Parameter dynamicLink is required."); |
| 124 } |
| 125 if (durationDays != null) { |
| 126 _queryParams["durationDays"] = [durationDays]; |
| 127 } |
| 128 |
| 129 _url = 'v1/' + commons.Escaper.ecapeVariable('$dynamicLink') + '/linkStats'; |
| 130 |
| 131 var _response = _requester.request(_url, |
| 132 "GET", |
| 133 body: _body, |
| 134 queryParams: _queryParams, |
| 135 uploadOptions: _uploadOptions, |
| 136 uploadMedia: _uploadMedia, |
| 137 downloadOptions: _downloadOptions); |
| 138 return _response.then((data) => new DynamicLinkStats.fromJson(data)); |
| 139 } |
| 140 |
| 141 } |
| 142 |
| 143 |
88 | 144 |
89 /** Tracking parameters supported by Dynamic Link. */ | 145 /** Tracking parameters supported by Dynamic Link. */ |
90 class AnalyticsInfo { | 146 class AnalyticsInfo { |
91 /** Google Play Campaign Measurements. */ | 147 /** Google Play Campaign Measurements. */ |
92 GooglePlayAnalytics googlePlayAnalytics; | 148 GooglePlayAnalytics googlePlayAnalytics; |
93 /** iTunes Connect App Analytics. */ | 149 /** iTunes Connect App Analytics. */ |
94 ITunesConnectAnalytics itunesConnectAnalytics; | 150 ITunesConnectAnalytics itunesConnectAnalytics; |
95 | 151 |
96 AnalyticsInfo(); | 152 AnalyticsInfo(); |
97 | 153 |
98 AnalyticsInfo.fromJson(core.Map _json) { | 154 AnalyticsInfo.fromJson(core.Map _json) { |
99 if (_json.containsKey("googlePlayAnalytics")) { | 155 if (_json.containsKey("googlePlayAnalytics")) { |
100 googlePlayAnalytics = new GooglePlayAnalytics.fromJson(_json["googlePlayAn
alytics"]); | 156 googlePlayAnalytics = new GooglePlayAnalytics.fromJson(_json["googlePlayAn
alytics"]); |
101 } | 157 } |
102 if (_json.containsKey("itunesConnectAnalytics")) { | 158 if (_json.containsKey("itunesConnectAnalytics")) { |
103 itunesConnectAnalytics = new ITunesConnectAnalytics.fromJson(_json["itunes
ConnectAnalytics"]); | 159 itunesConnectAnalytics = new ITunesConnectAnalytics.fromJson(_json["itunes
ConnectAnalytics"]); |
104 } | 160 } |
105 } | 161 } |
106 | 162 |
107 core.Map toJson() { | 163 core.Map<core.String, core.Object> toJson() { |
108 var _json = new core.Map(); | 164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
109 if (googlePlayAnalytics != null) { | 165 if (googlePlayAnalytics != null) { |
110 _json["googlePlayAnalytics"] = (googlePlayAnalytics).toJson(); | 166 _json["googlePlayAnalytics"] = (googlePlayAnalytics).toJson(); |
111 } | 167 } |
112 if (itunesConnectAnalytics != null) { | 168 if (itunesConnectAnalytics != null) { |
113 _json["itunesConnectAnalytics"] = (itunesConnectAnalytics).toJson(); | 169 _json["itunesConnectAnalytics"] = (itunesConnectAnalytics).toJson(); |
114 } | 170 } |
115 return _json; | 171 return _json; |
116 } | 172 } |
117 } | 173 } |
118 | 174 |
(...skipping 21 matching lines...) Expand all Loading... |
140 androidLink = _json["androidLink"]; | 196 androidLink = _json["androidLink"]; |
141 } | 197 } |
142 if (_json.containsKey("androidMinPackageVersionCode")) { | 198 if (_json.containsKey("androidMinPackageVersionCode")) { |
143 androidMinPackageVersionCode = _json["androidMinPackageVersionCode"]; | 199 androidMinPackageVersionCode = _json["androidMinPackageVersionCode"]; |
144 } | 200 } |
145 if (_json.containsKey("androidPackageName")) { | 201 if (_json.containsKey("androidPackageName")) { |
146 androidPackageName = _json["androidPackageName"]; | 202 androidPackageName = _json["androidPackageName"]; |
147 } | 203 } |
148 } | 204 } |
149 | 205 |
150 core.Map toJson() { | 206 core.Map<core.String, core.Object> toJson() { |
151 var _json = new core.Map(); | 207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
152 if (androidFallbackLink != null) { | 208 if (androidFallbackLink != null) { |
153 _json["androidFallbackLink"] = androidFallbackLink; | 209 _json["androidFallbackLink"] = androidFallbackLink; |
154 } | 210 } |
155 if (androidLink != null) { | 211 if (androidLink != null) { |
156 _json["androidLink"] = androidLink; | 212 _json["androidLink"] = androidLink; |
157 } | 213 } |
158 if (androidMinPackageVersionCode != null) { | 214 if (androidMinPackageVersionCode != null) { |
159 _json["androidMinPackageVersionCode"] = androidMinPackageVersionCode; | 215 _json["androidMinPackageVersionCode"] = androidMinPackageVersionCode; |
160 } | 216 } |
161 if (androidPackageName != null) { | 217 if (androidPackageName != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
191 dynamicLinkInfo = new DynamicLinkInfo.fromJson(_json["dynamicLinkInfo"]); | 247 dynamicLinkInfo = new DynamicLinkInfo.fromJson(_json["dynamicLinkInfo"]); |
192 } | 248 } |
193 if (_json.containsKey("longDynamicLink")) { | 249 if (_json.containsKey("longDynamicLink")) { |
194 longDynamicLink = _json["longDynamicLink"]; | 250 longDynamicLink = _json["longDynamicLink"]; |
195 } | 251 } |
196 if (_json.containsKey("suffix")) { | 252 if (_json.containsKey("suffix")) { |
197 suffix = new Suffix.fromJson(_json["suffix"]); | 253 suffix = new Suffix.fromJson(_json["suffix"]); |
198 } | 254 } |
199 } | 255 } |
200 | 256 |
201 core.Map toJson() { | 257 core.Map<core.String, core.Object> toJson() { |
202 var _json = new core.Map(); | 258 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
203 if (dynamicLinkInfo != null) { | 259 if (dynamicLinkInfo != null) { |
204 _json["dynamicLinkInfo"] = (dynamicLinkInfo).toJson(); | 260 _json["dynamicLinkInfo"] = (dynamicLinkInfo).toJson(); |
205 } | 261 } |
206 if (longDynamicLink != null) { | 262 if (longDynamicLink != null) { |
207 _json["longDynamicLink"] = longDynamicLink; | 263 _json["longDynamicLink"] = longDynamicLink; |
208 } | 264 } |
209 if (suffix != null) { | 265 if (suffix != null) { |
210 _json["suffix"] = (suffix).toJson(); | 266 _json["suffix"] = (suffix).toJson(); |
211 } | 267 } |
212 return _json; | 268 return _json; |
(...skipping 16 matching lines...) Expand all Loading... |
229 previewLink = _json["previewLink"]; | 285 previewLink = _json["previewLink"]; |
230 } | 286 } |
231 if (_json.containsKey("shortLink")) { | 287 if (_json.containsKey("shortLink")) { |
232 shortLink = _json["shortLink"]; | 288 shortLink = _json["shortLink"]; |
233 } | 289 } |
234 if (_json.containsKey("warning")) { | 290 if (_json.containsKey("warning")) { |
235 warning = _json["warning"].map((value) => new DynamicLinkWarning.fromJson(
value)).toList(); | 291 warning = _json["warning"].map((value) => new DynamicLinkWarning.fromJson(
value)).toList(); |
236 } | 292 } |
237 } | 293 } |
238 | 294 |
239 core.Map toJson() { | 295 core.Map<core.String, core.Object> toJson() { |
240 var _json = new core.Map(); | 296 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
241 if (previewLink != null) { | 297 if (previewLink != null) { |
242 _json["previewLink"] = previewLink; | 298 _json["previewLink"] = previewLink; |
243 } | 299 } |
244 if (shortLink != null) { | 300 if (shortLink != null) { |
245 _json["shortLink"] = shortLink; | 301 _json["shortLink"] = shortLink; |
246 } | 302 } |
247 if (warning != null) { | 303 if (warning != null) { |
248 _json["warning"] = warning.map((value) => (value).toJson()).toList(); | 304 _json["warning"] = warning.map((value) => (value).toJson()).toList(); |
249 } | 305 } |
250 return _json; | 306 return _json; |
251 } | 307 } |
252 } | 308 } |
253 | 309 |
| 310 /** Dynamic Link event stat. */ |
| 311 class DynamicLinkEventStat { |
| 312 /** The number of times this event occurred. */ |
| 313 core.String count; |
| 314 /** |
| 315 * Link event. |
| 316 * Possible string values are: |
| 317 * - "DYNAMIC_LINK_EVENT_UNSPECIFIED" : Unspecified type. |
| 318 * - "CLICK" : Indicates that an FDL is clicked by users. |
| 319 * - "REDIRECT" : Indicates that an FDL redirects users to fallback link. |
| 320 * - "APP_INSTALL" : Indicates that an FDL triggers an app install from Play |
| 321 * store, currently |
| 322 * it's impossible to get stats from App store. |
| 323 * - "APP_FIRST_OPEN" : Indicates that the app is opened for the first time |
| 324 * after an install |
| 325 * triggered by FDLs |
| 326 * - "APP_RE_OPEN" : Indicates that the app is opened via an FDL for non-first |
| 327 * time. |
| 328 */ |
| 329 core.String event; |
| 330 /** |
| 331 * Requested platform. |
| 332 * Possible string values are: |
| 333 * - "DYNAMIC_LINK_PLATFORM_UNSPECIFIED" : Unspecified platform. |
| 334 * - "ANDROID" : Represents Android platform. |
| 335 * All apps and browsers on Android are classfied in this category. |
| 336 * - "IOS" : Represents iOS platform. |
| 337 * All apps and browsers on iOS are classfied in this category. |
| 338 * - "DESKTOP" : Represents desktop. |
| 339 * Note: other platforms like Windows, Blackberry, Amazon fall into this |
| 340 * category. |
| 341 */ |
| 342 core.String platform; |
| 343 |
| 344 DynamicLinkEventStat(); |
| 345 |
| 346 DynamicLinkEventStat.fromJson(core.Map _json) { |
| 347 if (_json.containsKey("count")) { |
| 348 count = _json["count"]; |
| 349 } |
| 350 if (_json.containsKey("event")) { |
| 351 event = _json["event"]; |
| 352 } |
| 353 if (_json.containsKey("platform")) { |
| 354 platform = _json["platform"]; |
| 355 } |
| 356 } |
| 357 |
| 358 core.Map<core.String, core.Object> toJson() { |
| 359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 360 if (count != null) { |
| 361 _json["count"] = count; |
| 362 } |
| 363 if (event != null) { |
| 364 _json["event"] = event; |
| 365 } |
| 366 if (platform != null) { |
| 367 _json["platform"] = platform; |
| 368 } |
| 369 return _json; |
| 370 } |
| 371 } |
| 372 |
254 /** Information about a Dynamic Link. */ | 373 /** Information about a Dynamic Link. */ |
255 class DynamicLinkInfo { | 374 class DynamicLinkInfo { |
256 /** | 375 /** |
257 * Parameters used for tracking. See all tracking parameters in the | 376 * Parameters used for tracking. See all tracking parameters in the |
258 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua
lly). | 377 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua
lly). |
259 */ | 378 */ |
260 AnalyticsInfo analyticsInfo; | 379 AnalyticsInfo analyticsInfo; |
261 /** | 380 /** |
262 * Android related information. See Android related parameters in the | 381 * Android related information. See Android related parameters in the |
263 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua
lly). | 382 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua
lly). |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 link = _json["link"]; | 432 link = _json["link"]; |
314 } | 433 } |
315 if (_json.containsKey("navigationInfo")) { | 434 if (_json.containsKey("navigationInfo")) { |
316 navigationInfo = new NavigationInfo.fromJson(_json["navigationInfo"]); | 435 navigationInfo = new NavigationInfo.fromJson(_json["navigationInfo"]); |
317 } | 436 } |
318 if (_json.containsKey("socialMetaTagInfo")) { | 437 if (_json.containsKey("socialMetaTagInfo")) { |
319 socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInf
o"]); | 438 socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInf
o"]); |
320 } | 439 } |
321 } | 440 } |
322 | 441 |
323 core.Map toJson() { | 442 core.Map<core.String, core.Object> toJson() { |
324 var _json = new core.Map(); | 443 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
325 if (analyticsInfo != null) { | 444 if (analyticsInfo != null) { |
326 _json["analyticsInfo"] = (analyticsInfo).toJson(); | 445 _json["analyticsInfo"] = (analyticsInfo).toJson(); |
327 } | 446 } |
328 if (androidInfo != null) { | 447 if (androidInfo != null) { |
329 _json["androidInfo"] = (androidInfo).toJson(); | 448 _json["androidInfo"] = (androidInfo).toJson(); |
330 } | 449 } |
331 if (dynamicLinkDomain != null) { | 450 if (dynamicLinkDomain != null) { |
332 _json["dynamicLinkDomain"] = dynamicLinkDomain; | 451 _json["dynamicLinkDomain"] = dynamicLinkDomain; |
333 } | 452 } |
334 if (iosInfo != null) { | 453 if (iosInfo != null) { |
335 _json["iosInfo"] = (iosInfo).toJson(); | 454 _json["iosInfo"] = (iosInfo).toJson(); |
336 } | 455 } |
337 if (link != null) { | 456 if (link != null) { |
338 _json["link"] = link; | 457 _json["link"] = link; |
339 } | 458 } |
340 if (navigationInfo != null) { | 459 if (navigationInfo != null) { |
341 _json["navigationInfo"] = (navigationInfo).toJson(); | 460 _json["navigationInfo"] = (navigationInfo).toJson(); |
342 } | 461 } |
343 if (socialMetaTagInfo != null) { | 462 if (socialMetaTagInfo != null) { |
344 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); | 463 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); |
345 } | 464 } |
346 return _json; | 465 return _json; |
347 } | 466 } |
348 } | 467 } |
349 | 468 |
| 469 /** Analytics stats of a Dynamic Link for a given timeframe. */ |
| 470 class DynamicLinkStats { |
| 471 /** Dynamic Link event stats. */ |
| 472 core.List<DynamicLinkEventStat> linkEventStats; |
| 473 |
| 474 DynamicLinkStats(); |
| 475 |
| 476 DynamicLinkStats.fromJson(core.Map _json) { |
| 477 if (_json.containsKey("linkEventStats")) { |
| 478 linkEventStats = _json["linkEventStats"].map((value) => new DynamicLinkEve
ntStat.fromJson(value)).toList(); |
| 479 } |
| 480 } |
| 481 |
| 482 core.Map<core.String, core.Object> toJson() { |
| 483 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 484 if (linkEventStats != null) { |
| 485 _json["linkEventStats"] = linkEventStats.map((value) => (value).toJson()).
toList(); |
| 486 } |
| 487 return _json; |
| 488 } |
| 489 } |
| 490 |
350 /** Dynamic Links warning messages. */ | 491 /** Dynamic Links warning messages. */ |
351 class DynamicLinkWarning { | 492 class DynamicLinkWarning { |
352 /** | 493 /** |
353 * The warning code. | 494 * The warning code. |
354 * Possible string values are: | 495 * Possible string values are: |
355 * - "CODE_UNSPECIFIED" : Unknown code. | 496 * - "CODE_UNSPECIFIED" : Unknown code. |
356 * - "NOT_IN_PROJECT_ANDROID_PACKAGE_NAME" : The Android package does not | 497 * - "NOT_IN_PROJECT_ANDROID_PACKAGE_NAME" : The Android package does not |
357 * match any in developer's DevConsole project. | 498 * match any in developer's DevConsole project. |
358 * - "NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION" : The Android minimum version | 499 * - "NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION" : The Android minimum version |
359 * code has to be a valid integer. | 500 * code has to be a valid integer. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 548 |
408 DynamicLinkWarning.fromJson(core.Map _json) { | 549 DynamicLinkWarning.fromJson(core.Map _json) { |
409 if (_json.containsKey("warningCode")) { | 550 if (_json.containsKey("warningCode")) { |
410 warningCode = _json["warningCode"]; | 551 warningCode = _json["warningCode"]; |
411 } | 552 } |
412 if (_json.containsKey("warningMessage")) { | 553 if (_json.containsKey("warningMessage")) { |
413 warningMessage = _json["warningMessage"]; | 554 warningMessage = _json["warningMessage"]; |
414 } | 555 } |
415 } | 556 } |
416 | 557 |
417 core.Map toJson() { | 558 core.Map<core.String, core.Object> toJson() { |
418 var _json = new core.Map(); | 559 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
419 if (warningCode != null) { | 560 if (warningCode != null) { |
420 _json["warningCode"] = warningCode; | 561 _json["warningCode"] = warningCode; |
421 } | 562 } |
422 if (warningMessage != null) { | 563 if (warningMessage != null) { |
423 _json["warningMessage"] = warningMessage; | 564 _json["warningMessage"] = warningMessage; |
424 } | 565 } |
425 return _json; | 566 return _json; |
426 } | 567 } |
427 } | 568 } |
428 | 569 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 utmMedium = _json["utmMedium"]; | 618 utmMedium = _json["utmMedium"]; |
478 } | 619 } |
479 if (_json.containsKey("utmSource")) { | 620 if (_json.containsKey("utmSource")) { |
480 utmSource = _json["utmSource"]; | 621 utmSource = _json["utmSource"]; |
481 } | 622 } |
482 if (_json.containsKey("utmTerm")) { | 623 if (_json.containsKey("utmTerm")) { |
483 utmTerm = _json["utmTerm"]; | 624 utmTerm = _json["utmTerm"]; |
484 } | 625 } |
485 } | 626 } |
486 | 627 |
487 core.Map toJson() { | 628 core.Map<core.String, core.Object> toJson() { |
488 var _json = new core.Map(); | 629 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
489 if (gclid != null) { | 630 if (gclid != null) { |
490 _json["gclid"] = gclid; | 631 _json["gclid"] = gclid; |
491 } | 632 } |
492 if (utmCampaign != null) { | 633 if (utmCampaign != null) { |
493 _json["utmCampaign"] = utmCampaign; | 634 _json["utmCampaign"] = utmCampaign; |
494 } | 635 } |
495 if (utmContent != null) { | 636 if (utmContent != null) { |
496 _json["utmContent"] = utmContent; | 637 _json["utmContent"] = utmContent; |
497 } | 638 } |
498 if (utmMedium != null) { | 639 if (utmMedium != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 ct = _json["ct"]; | 676 ct = _json["ct"]; |
536 } | 677 } |
537 if (_json.containsKey("mt")) { | 678 if (_json.containsKey("mt")) { |
538 mt = _json["mt"]; | 679 mt = _json["mt"]; |
539 } | 680 } |
540 if (_json.containsKey("pt")) { | 681 if (_json.containsKey("pt")) { |
541 pt = _json["pt"]; | 682 pt = _json["pt"]; |
542 } | 683 } |
543 } | 684 } |
544 | 685 |
545 core.Map toJson() { | 686 core.Map<core.String, core.Object> toJson() { |
546 var _json = new core.Map(); | 687 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
547 if (at != null) { | 688 if (at != null) { |
548 _json["at"] = at; | 689 _json["at"] = at; |
549 } | 690 } |
550 if (ct != null) { | 691 if (ct != null) { |
551 _json["ct"] = ct; | 692 _json["ct"] = ct; |
552 } | 693 } |
553 if (mt != null) { | 694 if (mt != null) { |
554 _json["mt"] = mt; | 695 _json["mt"] = mt; |
555 } | 696 } |
556 if (pt != null) { | 697 if (pt != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 iosFallbackLink = _json["iosFallbackLink"]; | 736 iosFallbackLink = _json["iosFallbackLink"]; |
596 } | 737 } |
597 if (_json.containsKey("iosIpadBundleId")) { | 738 if (_json.containsKey("iosIpadBundleId")) { |
598 iosIpadBundleId = _json["iosIpadBundleId"]; | 739 iosIpadBundleId = _json["iosIpadBundleId"]; |
599 } | 740 } |
600 if (_json.containsKey("iosIpadFallbackLink")) { | 741 if (_json.containsKey("iosIpadFallbackLink")) { |
601 iosIpadFallbackLink = _json["iosIpadFallbackLink"]; | 742 iosIpadFallbackLink = _json["iosIpadFallbackLink"]; |
602 } | 743 } |
603 } | 744 } |
604 | 745 |
605 core.Map toJson() { | 746 core.Map<core.String, core.Object> toJson() { |
606 var _json = new core.Map(); | 747 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
607 if (iosAppStoreId != null) { | 748 if (iosAppStoreId != null) { |
608 _json["iosAppStoreId"] = iosAppStoreId; | 749 _json["iosAppStoreId"] = iosAppStoreId; |
609 } | 750 } |
610 if (iosBundleId != null) { | 751 if (iosBundleId != null) { |
611 _json["iosBundleId"] = iosBundleId; | 752 _json["iosBundleId"] = iosBundleId; |
612 } | 753 } |
613 if (iosCustomScheme != null) { | 754 if (iosCustomScheme != null) { |
614 _json["iosCustomScheme"] = iosCustomScheme; | 755 _json["iosCustomScheme"] = iosCustomScheme; |
615 } | 756 } |
616 if (iosFallbackLink != null) { | 757 if (iosFallbackLink != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
635 core.bool enableForcedRedirect; | 776 core.bool enableForcedRedirect; |
636 | 777 |
637 NavigationInfo(); | 778 NavigationInfo(); |
638 | 779 |
639 NavigationInfo.fromJson(core.Map _json) { | 780 NavigationInfo.fromJson(core.Map _json) { |
640 if (_json.containsKey("enableForcedRedirect")) { | 781 if (_json.containsKey("enableForcedRedirect")) { |
641 enableForcedRedirect = _json["enableForcedRedirect"]; | 782 enableForcedRedirect = _json["enableForcedRedirect"]; |
642 } | 783 } |
643 } | 784 } |
644 | 785 |
645 core.Map toJson() { | 786 core.Map<core.String, core.Object> toJson() { |
646 var _json = new core.Map(); | 787 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
647 if (enableForcedRedirect != null) { | 788 if (enableForcedRedirect != null) { |
648 _json["enableForcedRedirect"] = enableForcedRedirect; | 789 _json["enableForcedRedirect"] = enableForcedRedirect; |
649 } | 790 } |
650 return _json; | 791 return _json; |
651 } | 792 } |
652 } | 793 } |
653 | 794 |
654 /** | 795 /** |
655 * Parameters for social meta tag params. | 796 * Parameters for social meta tag params. |
656 * Used to set meta tag data for link previews on social sites. | 797 * Used to set meta tag data for link previews on social sites. |
(...skipping 13 matching lines...) Expand all Loading... |
670 socialDescription = _json["socialDescription"]; | 811 socialDescription = _json["socialDescription"]; |
671 } | 812 } |
672 if (_json.containsKey("socialImageLink")) { | 813 if (_json.containsKey("socialImageLink")) { |
673 socialImageLink = _json["socialImageLink"]; | 814 socialImageLink = _json["socialImageLink"]; |
674 } | 815 } |
675 if (_json.containsKey("socialTitle")) { | 816 if (_json.containsKey("socialTitle")) { |
676 socialTitle = _json["socialTitle"]; | 817 socialTitle = _json["socialTitle"]; |
677 } | 818 } |
678 } | 819 } |
679 | 820 |
680 core.Map toJson() { | 821 core.Map<core.String, core.Object> toJson() { |
681 var _json = new core.Map(); | 822 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
682 if (socialDescription != null) { | 823 if (socialDescription != null) { |
683 _json["socialDescription"] = socialDescription; | 824 _json["socialDescription"] = socialDescription; |
684 } | 825 } |
685 if (socialImageLink != null) { | 826 if (socialImageLink != null) { |
686 _json["socialImageLink"] = socialImageLink; | 827 _json["socialImageLink"] = socialImageLink; |
687 } | 828 } |
688 if (socialTitle != null) { | 829 if (socialTitle != null) { |
689 _json["socialTitle"] = socialTitle; | 830 _json["socialTitle"] = socialTitle; |
690 } | 831 } |
691 return _json; | 832 return _json; |
(...skipping 21 matching lines...) Expand all Loading... |
713 core.String option; | 854 core.String option; |
714 | 855 |
715 Suffix(); | 856 Suffix(); |
716 | 857 |
717 Suffix.fromJson(core.Map _json) { | 858 Suffix.fromJson(core.Map _json) { |
718 if (_json.containsKey("option")) { | 859 if (_json.containsKey("option")) { |
719 option = _json["option"]; | 860 option = _json["option"]; |
720 } | 861 } |
721 } | 862 } |
722 | 863 |
723 core.Map toJson() { | 864 core.Map<core.String, core.Object> toJson() { |
724 var _json = new core.Map(); | 865 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
725 if (option != null) { | 866 if (option != null) { |
726 _json["option"] = option; | 867 _json["option"] = option; |
727 } | 868 } |
728 return _json; | 869 return _json; |
729 } | 870 } |
730 } | 871 } |
OLD | NEW |