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; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 * | 274 * |
275 * Required. | 275 * Required. |
276 */ | 276 */ |
277 core.String dynamicLinkDomain; | 277 core.String dynamicLinkDomain; |
278 /** | 278 /** |
279 * iOS related information. See iOS related parameters in the | 279 * iOS related information. See iOS related parameters in the |
280 * [documentation](https://firebase.google.com/docs/dynamic-links/ios#create-a
-dynamic-link-programmatically). | 280 * [documentation](https://firebase.google.com/docs/dynamic-links/ios#create-a
-dynamic-link-programmatically). |
281 */ | 281 */ |
282 IosInfo iosInfo; | 282 IosInfo iosInfo; |
283 /** | 283 /** |
284 * Declares that the Dynamic Link is used in an advertisement. | |
285 * See the 'ad' parameter in the | |
286 * [documentation](https://firebase.google.com/docs/dynamic-links/android#crea
te-a-dynamic-link-programmatically). | |
287 */ | |
288 core.bool isAd; | |
289 /** | |
290 * The link your app will open, You can specify any URL your app can handle. | 284 * The link your app will open, You can specify any URL your app can handle. |
291 * This link must be a well-formatted URL, be properly URL-encoded, and use | 285 * This link must be a well-formatted URL, be properly URL-encoded, and use |
292 * the HTTP or HTTPS scheme. See 'link' parameters in the | 286 * the HTTP or HTTPS scheme. See 'link' parameters in the |
293 * [documentation](https://firebase.google.com/docs/dynamic-links/android#crea
te-a-dynamic-link-programmatically). | 287 * [documentation](https://firebase.google.com/docs/dynamic-links/android#crea
te-a-dynamic-link-programmatically). |
294 * | 288 * |
295 * Required. | 289 * Required. |
296 */ | 290 */ |
297 core.String link; | 291 core.String link; |
298 /** | 292 /** |
299 * Parameters for social meta tag params. | 293 * Parameters for social meta tag params. |
300 * Used to set meta tag data for link previews on social sites. | 294 * Used to set meta tag data for link previews on social sites. |
301 */ | 295 */ |
302 SocialMetaTagInfo socialMetaTagInfo; | 296 SocialMetaTagInfo socialMetaTagInfo; |
303 | 297 |
304 DynamicLinkInfo(); | 298 DynamicLinkInfo(); |
305 | 299 |
306 DynamicLinkInfo.fromJson(core.Map _json) { | 300 DynamicLinkInfo.fromJson(core.Map _json) { |
307 if (_json.containsKey("analyticsInfo")) { | 301 if (_json.containsKey("analyticsInfo")) { |
308 analyticsInfo = new AnalyticsInfo.fromJson(_json["analyticsInfo"]); | 302 analyticsInfo = new AnalyticsInfo.fromJson(_json["analyticsInfo"]); |
309 } | 303 } |
310 if (_json.containsKey("androidInfo")) { | 304 if (_json.containsKey("androidInfo")) { |
311 androidInfo = new AndroidInfo.fromJson(_json["androidInfo"]); | 305 androidInfo = new AndroidInfo.fromJson(_json["androidInfo"]); |
312 } | 306 } |
313 if (_json.containsKey("dynamicLinkDomain")) { | 307 if (_json.containsKey("dynamicLinkDomain")) { |
314 dynamicLinkDomain = _json["dynamicLinkDomain"]; | 308 dynamicLinkDomain = _json["dynamicLinkDomain"]; |
315 } | 309 } |
316 if (_json.containsKey("iosInfo")) { | 310 if (_json.containsKey("iosInfo")) { |
317 iosInfo = new IosInfo.fromJson(_json["iosInfo"]); | 311 iosInfo = new IosInfo.fromJson(_json["iosInfo"]); |
318 } | 312 } |
319 if (_json.containsKey("isAd")) { | |
320 isAd = _json["isAd"]; | |
321 } | |
322 if (_json.containsKey("link")) { | 313 if (_json.containsKey("link")) { |
323 link = _json["link"]; | 314 link = _json["link"]; |
324 } | 315 } |
325 if (_json.containsKey("socialMetaTagInfo")) { | 316 if (_json.containsKey("socialMetaTagInfo")) { |
326 socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInf
o"]); | 317 socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInf
o"]); |
327 } | 318 } |
328 } | 319 } |
329 | 320 |
330 core.Map toJson() { | 321 core.Map toJson() { |
331 var _json = new core.Map(); | 322 var _json = new core.Map(); |
332 if (analyticsInfo != null) { | 323 if (analyticsInfo != null) { |
333 _json["analyticsInfo"] = (analyticsInfo).toJson(); | 324 _json["analyticsInfo"] = (analyticsInfo).toJson(); |
334 } | 325 } |
335 if (androidInfo != null) { | 326 if (androidInfo != null) { |
336 _json["androidInfo"] = (androidInfo).toJson(); | 327 _json["androidInfo"] = (androidInfo).toJson(); |
337 } | 328 } |
338 if (dynamicLinkDomain != null) { | 329 if (dynamicLinkDomain != null) { |
339 _json["dynamicLinkDomain"] = dynamicLinkDomain; | 330 _json["dynamicLinkDomain"] = dynamicLinkDomain; |
340 } | 331 } |
341 if (iosInfo != null) { | 332 if (iosInfo != null) { |
342 _json["iosInfo"] = (iosInfo).toJson(); | 333 _json["iosInfo"] = (iosInfo).toJson(); |
343 } | 334 } |
344 if (isAd != null) { | |
345 _json["isAd"] = isAd; | |
346 } | |
347 if (link != null) { | 335 if (link != null) { |
348 _json["link"] = link; | 336 _json["link"] = link; |
349 } | 337 } |
350 if (socialMetaTagInfo != null) { | 338 if (socialMetaTagInfo != null) { |
351 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); | 339 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); |
352 } | 340 } |
353 return _json; | 341 return _json; |
354 } | 342 } |
355 } | 343 } |
356 | 344 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 } | 691 } |
704 | 692 |
705 core.Map toJson() { | 693 core.Map toJson() { |
706 var _json = new core.Map(); | 694 var _json = new core.Map(); |
707 if (option != null) { | 695 if (option != null) { |
708 _json["option"] = option; | 696 _json["option"] = option; |
709 } | 697 } |
710 return _json; | 698 return _json; |
711 } | 699 } |
712 } | 700 } |
OLD | NEW |