| 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.adsense.v1_4; | 3 library googleapis.adsense.v1_4; |
| 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 2385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 premium = _json["premium"]; | 2396 premium = _json["premium"]; |
| 2397 } | 2397 } |
| 2398 if (_json.containsKey("subAccounts")) { | 2398 if (_json.containsKey("subAccounts")) { |
| 2399 subAccounts = _json["subAccounts"].map((value) => new Account.fromJson(val
ue)).toList(); | 2399 subAccounts = _json["subAccounts"].map((value) => new Account.fromJson(val
ue)).toList(); |
| 2400 } | 2400 } |
| 2401 if (_json.containsKey("timezone")) { | 2401 if (_json.containsKey("timezone")) { |
| 2402 timezone = _json["timezone"]; | 2402 timezone = _json["timezone"]; |
| 2403 } | 2403 } |
| 2404 } | 2404 } |
| 2405 | 2405 |
| 2406 core.Map toJson() { | 2406 core.Map<core.String, core.Object> toJson() { |
| 2407 var _json = new core.Map(); | 2407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2408 if (creationTime != null) { | 2408 if (creationTime != null) { |
| 2409 _json["creation_time"] = creationTime; | 2409 _json["creation_time"] = creationTime; |
| 2410 } | 2410 } |
| 2411 if (id != null) { | 2411 if (id != null) { |
| 2412 _json["id"] = id; | 2412 _json["id"] = id; |
| 2413 } | 2413 } |
| 2414 if (kind != null) { | 2414 if (kind != null) { |
| 2415 _json["kind"] = kind; | 2415 _json["kind"] = kind; |
| 2416 } | 2416 } |
| 2417 if (name != null) { | 2417 if (name != null) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2453 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); | 2453 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); |
| 2454 } | 2454 } |
| 2455 if (_json.containsKey("kind")) { | 2455 if (_json.containsKey("kind")) { |
| 2456 kind = _json["kind"]; | 2456 kind = _json["kind"]; |
| 2457 } | 2457 } |
| 2458 if (_json.containsKey("nextPageToken")) { | 2458 if (_json.containsKey("nextPageToken")) { |
| 2459 nextPageToken = _json["nextPageToken"]; | 2459 nextPageToken = _json["nextPageToken"]; |
| 2460 } | 2460 } |
| 2461 } | 2461 } |
| 2462 | 2462 |
| 2463 core.Map toJson() { | 2463 core.Map<core.String, core.Object> toJson() { |
| 2464 var _json = new core.Map(); | 2464 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2465 if (etag != null) { | 2465 if (etag != null) { |
| 2466 _json["etag"] = etag; | 2466 _json["etag"] = etag; |
| 2467 } | 2467 } |
| 2468 if (items != null) { | 2468 if (items != null) { |
| 2469 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2469 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2470 } | 2470 } |
| 2471 if (kind != null) { | 2471 if (kind != null) { |
| 2472 _json["kind"] = kind; | 2472 _json["kind"] = kind; |
| 2473 } | 2473 } |
| 2474 if (nextPageToken != null) { | 2474 if (nextPageToken != null) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2506 kind = _json["kind"]; | 2506 kind = _json["kind"]; |
| 2507 } | 2507 } |
| 2508 if (_json.containsKey("productCode")) { | 2508 if (_json.containsKey("productCode")) { |
| 2509 productCode = _json["productCode"]; | 2509 productCode = _json["productCode"]; |
| 2510 } | 2510 } |
| 2511 if (_json.containsKey("supportsReporting")) { | 2511 if (_json.containsKey("supportsReporting")) { |
| 2512 supportsReporting = _json["supportsReporting"]; | 2512 supportsReporting = _json["supportsReporting"]; |
| 2513 } | 2513 } |
| 2514 } | 2514 } |
| 2515 | 2515 |
| 2516 core.Map toJson() { | 2516 core.Map<core.String, core.Object> toJson() { |
| 2517 var _json = new core.Map(); | 2517 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2518 if (arcOptIn != null) { | 2518 if (arcOptIn != null) { |
| 2519 _json["arcOptIn"] = arcOptIn; | 2519 _json["arcOptIn"] = arcOptIn; |
| 2520 } | 2520 } |
| 2521 if (id != null) { | 2521 if (id != null) { |
| 2522 _json["id"] = id; | 2522 _json["id"] = id; |
| 2523 } | 2523 } |
| 2524 if (kind != null) { | 2524 if (kind != null) { |
| 2525 _json["kind"] = kind; | 2525 _json["kind"] = kind; |
| 2526 } | 2526 } |
| 2527 if (productCode != null) { | 2527 if (productCode != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2557 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList
(); | 2557 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList
(); |
| 2558 } | 2558 } |
| 2559 if (_json.containsKey("kind")) { | 2559 if (_json.containsKey("kind")) { |
| 2560 kind = _json["kind"]; | 2560 kind = _json["kind"]; |
| 2561 } | 2561 } |
| 2562 if (_json.containsKey("nextPageToken")) { | 2562 if (_json.containsKey("nextPageToken")) { |
| 2563 nextPageToken = _json["nextPageToken"]; | 2563 nextPageToken = _json["nextPageToken"]; |
| 2564 } | 2564 } |
| 2565 } | 2565 } |
| 2566 | 2566 |
| 2567 core.Map toJson() { | 2567 core.Map<core.String, core.Object> toJson() { |
| 2568 var _json = new core.Map(); | 2568 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2569 if (etag != null) { | 2569 if (etag != null) { |
| 2570 _json["etag"] = etag; | 2570 _json["etag"] = etag; |
| 2571 } | 2571 } |
| 2572 if (items != null) { | 2572 if (items != null) { |
| 2573 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2573 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2574 } | 2574 } |
| 2575 if (kind != null) { | 2575 if (kind != null) { |
| 2576 _json["kind"] = kind; | 2576 _json["kind"] = kind; |
| 2577 } | 2577 } |
| 2578 if (nextPageToken != null) { | 2578 if (nextPageToken != null) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2592 | 2592 |
| 2593 AdCode.fromJson(core.Map _json) { | 2593 AdCode.fromJson(core.Map _json) { |
| 2594 if (_json.containsKey("adCode")) { | 2594 if (_json.containsKey("adCode")) { |
| 2595 adCode = _json["adCode"]; | 2595 adCode = _json["adCode"]; |
| 2596 } | 2596 } |
| 2597 if (_json.containsKey("kind")) { | 2597 if (_json.containsKey("kind")) { |
| 2598 kind = _json["kind"]; | 2598 kind = _json["kind"]; |
| 2599 } | 2599 } |
| 2600 } | 2600 } |
| 2601 | 2601 |
| 2602 core.Map toJson() { | 2602 core.Map<core.String, core.Object> toJson() { |
| 2603 var _json = new core.Map(); | 2603 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2604 if (adCode != null) { | 2604 if (adCode != null) { |
| 2605 _json["adCode"] = adCode; | 2605 _json["adCode"] = adCode; |
| 2606 } | 2606 } |
| 2607 if (kind != null) { | 2607 if (kind != null) { |
| 2608 _json["kind"] = kind; | 2608 _json["kind"] = kind; |
| 2609 } | 2609 } |
| 2610 return _json; | 2610 return _json; |
| 2611 } | 2611 } |
| 2612 } | 2612 } |
| 2613 | 2613 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2641 text = _json["text"]; | 2641 text = _json["text"]; |
| 2642 } | 2642 } |
| 2643 if (_json.containsKey("title")) { | 2643 if (_json.containsKey("title")) { |
| 2644 title = _json["title"]; | 2644 title = _json["title"]; |
| 2645 } | 2645 } |
| 2646 if (_json.containsKey("url")) { | 2646 if (_json.containsKey("url")) { |
| 2647 url = _json["url"]; | 2647 url = _json["url"]; |
| 2648 } | 2648 } |
| 2649 } | 2649 } |
| 2650 | 2650 |
| 2651 core.Map toJson() { | 2651 core.Map<core.String, core.Object> toJson() { |
| 2652 var _json = new core.Map(); | 2652 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2653 if (background != null) { | 2653 if (background != null) { |
| 2654 _json["background"] = background; | 2654 _json["background"] = background; |
| 2655 } | 2655 } |
| 2656 if (border != null) { | 2656 if (border != null) { |
| 2657 _json["border"] = border; | 2657 _json["border"] = border; |
| 2658 } | 2658 } |
| 2659 if (text != null) { | 2659 if (text != null) { |
| 2660 _json["text"] = text; | 2660 _json["text"] = text; |
| 2661 } | 2661 } |
| 2662 if (title != null) { | 2662 if (title != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2680 | 2680 |
| 2681 AdStyleFont.fromJson(core.Map _json) { | 2681 AdStyleFont.fromJson(core.Map _json) { |
| 2682 if (_json.containsKey("family")) { | 2682 if (_json.containsKey("family")) { |
| 2683 family = _json["family"]; | 2683 family = _json["family"]; |
| 2684 } | 2684 } |
| 2685 if (_json.containsKey("size")) { | 2685 if (_json.containsKey("size")) { |
| 2686 size = _json["size"]; | 2686 size = _json["size"]; |
| 2687 } | 2687 } |
| 2688 } | 2688 } |
| 2689 | 2689 |
| 2690 core.Map toJson() { | 2690 core.Map<core.String, core.Object> toJson() { |
| 2691 var _json = new core.Map(); | 2691 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2692 if (family != null) { | 2692 if (family != null) { |
| 2693 _json["family"] = family; | 2693 _json["family"] = family; |
| 2694 } | 2694 } |
| 2695 if (size != null) { | 2695 if (size != null) { |
| 2696 _json["size"] = size; | 2696 _json["size"] = size; |
| 2697 } | 2697 } |
| 2698 return _json; | 2698 return _json; |
| 2699 } | 2699 } |
| 2700 } | 2700 } |
| 2701 | 2701 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2725 corners = _json["corners"]; | 2725 corners = _json["corners"]; |
| 2726 } | 2726 } |
| 2727 if (_json.containsKey("font")) { | 2727 if (_json.containsKey("font")) { |
| 2728 font = new AdStyleFont.fromJson(_json["font"]); | 2728 font = new AdStyleFont.fromJson(_json["font"]); |
| 2729 } | 2729 } |
| 2730 if (_json.containsKey("kind")) { | 2730 if (_json.containsKey("kind")) { |
| 2731 kind = _json["kind"]; | 2731 kind = _json["kind"]; |
| 2732 } | 2732 } |
| 2733 } | 2733 } |
| 2734 | 2734 |
| 2735 core.Map toJson() { | 2735 core.Map<core.String, core.Object> toJson() { |
| 2736 var _json = new core.Map(); | 2736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2737 if (colors != null) { | 2737 if (colors != null) { |
| 2738 _json["colors"] = (colors).toJson(); | 2738 _json["colors"] = (colors).toJson(); |
| 2739 } | 2739 } |
| 2740 if (corners != null) { | 2740 if (corners != null) { |
| 2741 _json["corners"] = corners; | 2741 _json["corners"] = corners; |
| 2742 } | 2742 } |
| 2743 if (font != null) { | 2743 if (font != null) { |
| 2744 _json["font"] = (font).toJson(); | 2744 _json["font"] = (font).toJson(); |
| 2745 } | 2745 } |
| 2746 if (kind != null) { | 2746 if (kind != null) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2766 color = _json["color"]; | 2766 color = _json["color"]; |
| 2767 } | 2767 } |
| 2768 if (_json.containsKey("type")) { | 2768 if (_json.containsKey("type")) { |
| 2769 type = _json["type"]; | 2769 type = _json["type"]; |
| 2770 } | 2770 } |
| 2771 if (_json.containsKey("url")) { | 2771 if (_json.containsKey("url")) { |
| 2772 url = _json["url"]; | 2772 url = _json["url"]; |
| 2773 } | 2773 } |
| 2774 } | 2774 } |
| 2775 | 2775 |
| 2776 core.Map toJson() { | 2776 core.Map<core.String, core.Object> toJson() { |
| 2777 var _json = new core.Map(); | 2777 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2778 if (color != null) { | 2778 if (color != null) { |
| 2779 _json["color"] = color; | 2779 _json["color"] = color; |
| 2780 } | 2780 } |
| 2781 if (type != null) { | 2781 if (type != null) { |
| 2782 _json["type"] = type; | 2782 _json["type"] = type; |
| 2783 } | 2783 } |
| 2784 if (url != null) { | 2784 if (url != null) { |
| 2785 _json["url"] = url; | 2785 _json["url"] = url; |
| 2786 } | 2786 } |
| 2787 return _json; | 2787 return _json; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2807 backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(_json["ba
ckupOption"]); | 2807 backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(_json["ba
ckupOption"]); |
| 2808 } | 2808 } |
| 2809 if (_json.containsKey("size")) { | 2809 if (_json.containsKey("size")) { |
| 2810 size = _json["size"]; | 2810 size = _json["size"]; |
| 2811 } | 2811 } |
| 2812 if (_json.containsKey("type")) { | 2812 if (_json.containsKey("type")) { |
| 2813 type = _json["type"]; | 2813 type = _json["type"]; |
| 2814 } | 2814 } |
| 2815 } | 2815 } |
| 2816 | 2816 |
| 2817 core.Map toJson() { | 2817 core.Map<core.String, core.Object> toJson() { |
| 2818 var _json = new core.Map(); | 2818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2819 if (backupOption != null) { | 2819 if (backupOption != null) { |
| 2820 _json["backupOption"] = (backupOption).toJson(); | 2820 _json["backupOption"] = (backupOption).toJson(); |
| 2821 } | 2821 } |
| 2822 if (size != null) { | 2822 if (size != null) { |
| 2823 _json["size"] = size; | 2823 _json["size"] = size; |
| 2824 } | 2824 } |
| 2825 if (type != null) { | 2825 if (type != null) { |
| 2826 _json["type"] = type; | 2826 _json["type"] = type; |
| 2827 } | 2827 } |
| 2828 return _json; | 2828 return _json; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2853 frequency = _json["frequency"]; | 2853 frequency = _json["frequency"]; |
| 2854 } | 2854 } |
| 2855 if (_json.containsKey("minimumWordCount")) { | 2855 if (_json.containsKey("minimumWordCount")) { |
| 2856 minimumWordCount = _json["minimumWordCount"]; | 2856 minimumWordCount = _json["minimumWordCount"]; |
| 2857 } | 2857 } |
| 2858 if (_json.containsKey("type")) { | 2858 if (_json.containsKey("type")) { |
| 2859 type = _json["type"]; | 2859 type = _json["type"]; |
| 2860 } | 2860 } |
| 2861 } | 2861 } |
| 2862 | 2862 |
| 2863 core.Map toJson() { | 2863 core.Map<core.String, core.Object> toJson() { |
| 2864 var _json = new core.Map(); | 2864 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2865 if (adPosition != null) { | 2865 if (adPosition != null) { |
| 2866 _json["adPosition"] = adPosition; | 2866 _json["adPosition"] = adPosition; |
| 2867 } | 2867 } |
| 2868 if (frequency != null) { | 2868 if (frequency != null) { |
| 2869 _json["frequency"] = frequency; | 2869 _json["frequency"] = frequency; |
| 2870 } | 2870 } |
| 2871 if (minimumWordCount != null) { | 2871 if (minimumWordCount != null) { |
| 2872 _json["minimumWordCount"] = minimumWordCount; | 2872 _json["minimumWordCount"] = minimumWordCount; |
| 2873 } | 2873 } |
| 2874 if (type != null) { | 2874 if (type != null) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2899 scriptingLanguage = _json["scriptingLanguage"]; | 2899 scriptingLanguage = _json["scriptingLanguage"]; |
| 2900 } | 2900 } |
| 2901 if (_json.containsKey("size")) { | 2901 if (_json.containsKey("size")) { |
| 2902 size = _json["size"]; | 2902 size = _json["size"]; |
| 2903 } | 2903 } |
| 2904 if (_json.containsKey("type")) { | 2904 if (_json.containsKey("type")) { |
| 2905 type = _json["type"]; | 2905 type = _json["type"]; |
| 2906 } | 2906 } |
| 2907 } | 2907 } |
| 2908 | 2908 |
| 2909 core.Map toJson() { | 2909 core.Map<core.String, core.Object> toJson() { |
| 2910 var _json = new core.Map(); | 2910 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2911 if (markupLanguage != null) { | 2911 if (markupLanguage != null) { |
| 2912 _json["markupLanguage"] = markupLanguage; | 2912 _json["markupLanguage"] = markupLanguage; |
| 2913 } | 2913 } |
| 2914 if (scriptingLanguage != null) { | 2914 if (scriptingLanguage != null) { |
| 2915 _json["scriptingLanguage"] = scriptingLanguage; | 2915 _json["scriptingLanguage"] = scriptingLanguage; |
| 2916 } | 2916 } |
| 2917 if (size != null) { | 2917 if (size != null) { |
| 2918 _json["size"] = size; | 2918 _json["size"] = size; |
| 2919 } | 2919 } |
| 2920 if (type != null) { | 2920 if (type != null) { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2992 name = _json["name"]; | 2992 name = _json["name"]; |
| 2993 } | 2993 } |
| 2994 if (_json.containsKey("savedStyleId")) { | 2994 if (_json.containsKey("savedStyleId")) { |
| 2995 savedStyleId = _json["savedStyleId"]; | 2995 savedStyleId = _json["savedStyleId"]; |
| 2996 } | 2996 } |
| 2997 if (_json.containsKey("status")) { | 2997 if (_json.containsKey("status")) { |
| 2998 status = _json["status"]; | 2998 status = _json["status"]; |
| 2999 } | 2999 } |
| 3000 } | 3000 } |
| 3001 | 3001 |
| 3002 core.Map toJson() { | 3002 core.Map<core.String, core.Object> toJson() { |
| 3003 var _json = new core.Map(); | 3003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3004 if (code != null) { | 3004 if (code != null) { |
| 3005 _json["code"] = code; | 3005 _json["code"] = code; |
| 3006 } | 3006 } |
| 3007 if (contentAdsSettings != null) { | 3007 if (contentAdsSettings != null) { |
| 3008 _json["contentAdsSettings"] = (contentAdsSettings).toJson(); | 3008 _json["contentAdsSettings"] = (contentAdsSettings).toJson(); |
| 3009 } | 3009 } |
| 3010 if (customStyle != null) { | 3010 if (customStyle != null) { |
| 3011 _json["customStyle"] = (customStyle).toJson(); | 3011 _json["customStyle"] = (customStyle).toJson(); |
| 3012 } | 3012 } |
| 3013 if (feedAdsSettings != null) { | 3013 if (feedAdsSettings != null) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList()
; | 3058 items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList()
; |
| 3059 } | 3059 } |
| 3060 if (_json.containsKey("kind")) { | 3060 if (_json.containsKey("kind")) { |
| 3061 kind = _json["kind"]; | 3061 kind = _json["kind"]; |
| 3062 } | 3062 } |
| 3063 if (_json.containsKey("nextPageToken")) { | 3063 if (_json.containsKey("nextPageToken")) { |
| 3064 nextPageToken = _json["nextPageToken"]; | 3064 nextPageToken = _json["nextPageToken"]; |
| 3065 } | 3065 } |
| 3066 } | 3066 } |
| 3067 | 3067 |
| 3068 core.Map toJson() { | 3068 core.Map<core.String, core.Object> toJson() { |
| 3069 var _json = new core.Map(); | 3069 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3070 if (etag != null) { | 3070 if (etag != null) { |
| 3071 _json["etag"] = etag; | 3071 _json["etag"] = etag; |
| 3072 } | 3072 } |
| 3073 if (items != null) { | 3073 if (items != null) { |
| 3074 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3074 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3075 } | 3075 } |
| 3076 if (kind != null) { | 3076 if (kind != null) { |
| 3077 _json["kind"] = kind; | 3077 _json["kind"] = kind; |
| 3078 } | 3078 } |
| 3079 if (nextPageToken != null) { | 3079 if (nextPageToken != null) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 3104 currency = _json["currency"]; | 3104 currency = _json["currency"]; |
| 3105 } | 3105 } |
| 3106 if (_json.containsKey("name")) { | 3106 if (_json.containsKey("name")) { |
| 3107 name = _json["name"]; | 3107 name = _json["name"]; |
| 3108 } | 3108 } |
| 3109 if (_json.containsKey("type")) { | 3109 if (_json.containsKey("type")) { |
| 3110 type = _json["type"]; | 3110 type = _json["type"]; |
| 3111 } | 3111 } |
| 3112 } | 3112 } |
| 3113 | 3113 |
| 3114 core.Map toJson() { | 3114 core.Map<core.String, core.Object> toJson() { |
| 3115 var _json = new core.Map(); | 3115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3116 if (currency != null) { | 3116 if (currency != null) { |
| 3117 _json["currency"] = currency; | 3117 _json["currency"] = currency; |
| 3118 } | 3118 } |
| 3119 if (name != null) { | 3119 if (name != null) { |
| 3120 _json["name"] = name; | 3120 _json["name"] = name; |
| 3121 } | 3121 } |
| 3122 if (type != null) { | 3122 if (type != null) { |
| 3123 _json["type"] = type; | 3123 _json["type"] = type; |
| 3124 } | 3124 } |
| 3125 return _json; | 3125 return _json; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3189 totalMatchedRows = _json["totalMatchedRows"]; | 3189 totalMatchedRows = _json["totalMatchedRows"]; |
| 3190 } | 3190 } |
| 3191 if (_json.containsKey("totals")) { | 3191 if (_json.containsKey("totals")) { |
| 3192 totals = _json["totals"]; | 3192 totals = _json["totals"]; |
| 3193 } | 3193 } |
| 3194 if (_json.containsKey("warnings")) { | 3194 if (_json.containsKey("warnings")) { |
| 3195 warnings = _json["warnings"]; | 3195 warnings = _json["warnings"]; |
| 3196 } | 3196 } |
| 3197 } | 3197 } |
| 3198 | 3198 |
| 3199 core.Map toJson() { | 3199 core.Map<core.String, core.Object> toJson() { |
| 3200 var _json = new core.Map(); | 3200 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3201 if (averages != null) { | 3201 if (averages != null) { |
| 3202 _json["averages"] = averages; | 3202 _json["averages"] = averages; |
| 3203 } | 3203 } |
| 3204 if (endDate != null) { | 3204 if (endDate != null) { |
| 3205 _json["endDate"] = endDate; | 3205 _json["endDate"] = endDate; |
| 3206 } | 3206 } |
| 3207 if (headers != null) { | 3207 if (headers != null) { |
| 3208 _json["headers"] = headers.map((value) => (value).toJson()).toList(); | 3208 _json["headers"] = headers.map((value) => (value).toJson()).toList(); |
| 3209 } | 3209 } |
| 3210 if (kind != null) { | 3210 if (kind != null) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3266 message = _json["message"]; | 3266 message = _json["message"]; |
| 3267 } | 3267 } |
| 3268 if (_json.containsKey("severity")) { | 3268 if (_json.containsKey("severity")) { |
| 3269 severity = _json["severity"]; | 3269 severity = _json["severity"]; |
| 3270 } | 3270 } |
| 3271 if (_json.containsKey("type")) { | 3271 if (_json.containsKey("type")) { |
| 3272 type = _json["type"]; | 3272 type = _json["type"]; |
| 3273 } | 3273 } |
| 3274 } | 3274 } |
| 3275 | 3275 |
| 3276 core.Map toJson() { | 3276 core.Map<core.String, core.Object> toJson() { |
| 3277 var _json = new core.Map(); | 3277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3278 if (id != null) { | 3278 if (id != null) { |
| 3279 _json["id"] = id; | 3279 _json["id"] = id; |
| 3280 } | 3280 } |
| 3281 if (isDismissible != null) { | 3281 if (isDismissible != null) { |
| 3282 _json["isDismissible"] = isDismissible; | 3282 _json["isDismissible"] = isDismissible; |
| 3283 } | 3283 } |
| 3284 if (kind != null) { | 3284 if (kind != null) { |
| 3285 _json["kind"] = kind; | 3285 _json["kind"] = kind; |
| 3286 } | 3286 } |
| 3287 if (message != null) { | 3287 if (message != null) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3307 | 3307 |
| 3308 Alerts.fromJson(core.Map _json) { | 3308 Alerts.fromJson(core.Map _json) { |
| 3309 if (_json.containsKey("items")) { | 3309 if (_json.containsKey("items")) { |
| 3310 items = _json["items"].map((value) => new Alert.fromJson(value)).toList(); | 3310 items = _json["items"].map((value) => new Alert.fromJson(value)).toList(); |
| 3311 } | 3311 } |
| 3312 if (_json.containsKey("kind")) { | 3312 if (_json.containsKey("kind")) { |
| 3313 kind = _json["kind"]; | 3313 kind = _json["kind"]; |
| 3314 } | 3314 } |
| 3315 } | 3315 } |
| 3316 | 3316 |
| 3317 core.Map toJson() { | 3317 core.Map<core.String, core.Object> toJson() { |
| 3318 var _json = new core.Map(); | 3318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3319 if (items != null) { | 3319 if (items != null) { |
| 3320 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3320 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3321 } | 3321 } |
| 3322 if (kind != null) { | 3322 if (kind != null) { |
| 3323 _json["kind"] = kind; | 3323 _json["kind"] = kind; |
| 3324 } | 3324 } |
| 3325 return _json; | 3325 return _json; |
| 3326 } | 3326 } |
| 3327 } | 3327 } |
| 3328 | 3328 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 3354 description = _json["description"]; | 3354 description = _json["description"]; |
| 3355 } | 3355 } |
| 3356 if (_json.containsKey("location")) { | 3356 if (_json.containsKey("location")) { |
| 3357 location = _json["location"]; | 3357 location = _json["location"]; |
| 3358 } | 3358 } |
| 3359 if (_json.containsKey("siteLanguage")) { | 3359 if (_json.containsKey("siteLanguage")) { |
| 3360 siteLanguage = _json["siteLanguage"]; | 3360 siteLanguage = _json["siteLanguage"]; |
| 3361 } | 3361 } |
| 3362 } | 3362 } |
| 3363 | 3363 |
| 3364 core.Map toJson() { | 3364 core.Map<core.String, core.Object> toJson() { |
| 3365 var _json = new core.Map(); | 3365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3366 if (adsAppearOn != null) { | 3366 if (adsAppearOn != null) { |
| 3367 _json["adsAppearOn"] = adsAppearOn; | 3367 _json["adsAppearOn"] = adsAppearOn; |
| 3368 } | 3368 } |
| 3369 if (description != null) { | 3369 if (description != null) { |
| 3370 _json["description"] = description; | 3370 _json["description"] = description; |
| 3371 } | 3371 } |
| 3372 if (location != null) { | 3372 if (location != null) { |
| 3373 _json["location"] = location; | 3373 _json["location"] = location; |
| 3374 } | 3374 } |
| 3375 if (siteLanguage != null) { | 3375 if (siteLanguage != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3408 kind = _json["kind"]; | 3408 kind = _json["kind"]; |
| 3409 } | 3409 } |
| 3410 if (_json.containsKey("name")) { | 3410 if (_json.containsKey("name")) { |
| 3411 name = _json["name"]; | 3411 name = _json["name"]; |
| 3412 } | 3412 } |
| 3413 if (_json.containsKey("targetingInfo")) { | 3413 if (_json.containsKey("targetingInfo")) { |
| 3414 targetingInfo = new CustomChannelTargetingInfo.fromJson(_json["targetingIn
fo"]); | 3414 targetingInfo = new CustomChannelTargetingInfo.fromJson(_json["targetingIn
fo"]); |
| 3415 } | 3415 } |
| 3416 } | 3416 } |
| 3417 | 3417 |
| 3418 core.Map toJson() { | 3418 core.Map<core.String, core.Object> toJson() { |
| 3419 var _json = new core.Map(); | 3419 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3420 if (code != null) { | 3420 if (code != null) { |
| 3421 _json["code"] = code; | 3421 _json["code"] = code; |
| 3422 } | 3422 } |
| 3423 if (id != null) { | 3423 if (id != null) { |
| 3424 _json["id"] = id; | 3424 _json["id"] = id; |
| 3425 } | 3425 } |
| 3426 if (kind != null) { | 3426 if (kind != null) { |
| 3427 _json["kind"] = kind; | 3427 _json["kind"] = kind; |
| 3428 } | 3428 } |
| 3429 if (name != null) { | 3429 if (name != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3459 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t
oList(); | 3459 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t
oList(); |
| 3460 } | 3460 } |
| 3461 if (_json.containsKey("kind")) { | 3461 if (_json.containsKey("kind")) { |
| 3462 kind = _json["kind"]; | 3462 kind = _json["kind"]; |
| 3463 } | 3463 } |
| 3464 if (_json.containsKey("nextPageToken")) { | 3464 if (_json.containsKey("nextPageToken")) { |
| 3465 nextPageToken = _json["nextPageToken"]; | 3465 nextPageToken = _json["nextPageToken"]; |
| 3466 } | 3466 } |
| 3467 } | 3467 } |
| 3468 | 3468 |
| 3469 core.Map toJson() { | 3469 core.Map<core.String, core.Object> toJson() { |
| 3470 var _json = new core.Map(); | 3470 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3471 if (etag != null) { | 3471 if (etag != null) { |
| 3472 _json["etag"] = etag; | 3472 _json["etag"] = etag; |
| 3473 } | 3473 } |
| 3474 if (items != null) { | 3474 if (items != null) { |
| 3475 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3475 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3476 } | 3476 } |
| 3477 if (kind != null) { | 3477 if (kind != null) { |
| 3478 _json["kind"] = kind; | 3478 _json["kind"] = kind; |
| 3479 } | 3479 } |
| 3480 if (nextPageToken != null) { | 3480 if (nextPageToken != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3493 | 3493 |
| 3494 Metadata.fromJson(core.Map _json) { | 3494 Metadata.fromJson(core.Map _json) { |
| 3495 if (_json.containsKey("items")) { | 3495 if (_json.containsKey("items")) { |
| 3496 items = _json["items"].map((value) => new ReportingMetadataEntry.fromJson(
value)).toList(); | 3496 items = _json["items"].map((value) => new ReportingMetadataEntry.fromJson(
value)).toList(); |
| 3497 } | 3497 } |
| 3498 if (_json.containsKey("kind")) { | 3498 if (_json.containsKey("kind")) { |
| 3499 kind = _json["kind"]; | 3499 kind = _json["kind"]; |
| 3500 } | 3500 } |
| 3501 } | 3501 } |
| 3502 | 3502 |
| 3503 core.Map toJson() { | 3503 core.Map<core.String, core.Object> toJson() { |
| 3504 var _json = new core.Map(); | 3504 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3505 if (items != null) { | 3505 if (items != null) { |
| 3506 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3506 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3507 } | 3507 } |
| 3508 if (kind != null) { | 3508 if (kind != null) { |
| 3509 _json["kind"] = kind; | 3509 _json["kind"] = kind; |
| 3510 } | 3510 } |
| 3511 return _json; | 3511 return _json; |
| 3512 } | 3512 } |
| 3513 } | 3513 } |
| 3514 | 3514 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 3540 paymentAmount = _json["paymentAmount"]; | 3540 paymentAmount = _json["paymentAmount"]; |
| 3541 } | 3541 } |
| 3542 if (_json.containsKey("paymentAmountCurrencyCode")) { | 3542 if (_json.containsKey("paymentAmountCurrencyCode")) { |
| 3543 paymentAmountCurrencyCode = _json["paymentAmountCurrencyCode"]; | 3543 paymentAmountCurrencyCode = _json["paymentAmountCurrencyCode"]; |
| 3544 } | 3544 } |
| 3545 if (_json.containsKey("paymentDate")) { | 3545 if (_json.containsKey("paymentDate")) { |
| 3546 paymentDate = _json["paymentDate"]; | 3546 paymentDate = _json["paymentDate"]; |
| 3547 } | 3547 } |
| 3548 } | 3548 } |
| 3549 | 3549 |
| 3550 core.Map toJson() { | 3550 core.Map<core.String, core.Object> toJson() { |
| 3551 var _json = new core.Map(); | 3551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3552 if (id != null) { | 3552 if (id != null) { |
| 3553 _json["id"] = id; | 3553 _json["id"] = id; |
| 3554 } | 3554 } |
| 3555 if (kind != null) { | 3555 if (kind != null) { |
| 3556 _json["kind"] = kind; | 3556 _json["kind"] = kind; |
| 3557 } | 3557 } |
| 3558 if (paymentAmount != null) { | 3558 if (paymentAmount != null) { |
| 3559 _json["paymentAmount"] = paymentAmount; | 3559 _json["paymentAmount"] = paymentAmount; |
| 3560 } | 3560 } |
| 3561 if (paymentAmountCurrencyCode != null) { | 3561 if (paymentAmountCurrencyCode != null) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3581 | 3581 |
| 3582 Payments.fromJson(core.Map _json) { | 3582 Payments.fromJson(core.Map _json) { |
| 3583 if (_json.containsKey("items")) { | 3583 if (_json.containsKey("items")) { |
| 3584 items = _json["items"].map((value) => new Payment.fromJson(value)).toList(
); | 3584 items = _json["items"].map((value) => new Payment.fromJson(value)).toList(
); |
| 3585 } | 3585 } |
| 3586 if (_json.containsKey("kind")) { | 3586 if (_json.containsKey("kind")) { |
| 3587 kind = _json["kind"]; | 3587 kind = _json["kind"]; |
| 3588 } | 3588 } |
| 3589 } | 3589 } |
| 3590 | 3590 |
| 3591 core.Map toJson() { | 3591 core.Map<core.String, core.Object> toJson() { |
| 3592 var _json = new core.Map(); | 3592 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3593 if (items != null) { | 3593 if (items != null) { |
| 3594 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3594 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3595 } | 3595 } |
| 3596 if (kind != null) { | 3596 if (kind != null) { |
| 3597 _json["kind"] = kind; | 3597 _json["kind"] = kind; |
| 3598 } | 3598 } |
| 3599 return _json; | 3599 return _json; |
| 3600 } | 3600 } |
| 3601 } | 3601 } |
| 3602 | 3602 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3658 requiredDimensions = _json["requiredDimensions"]; | 3658 requiredDimensions = _json["requiredDimensions"]; |
| 3659 } | 3659 } |
| 3660 if (_json.containsKey("requiredMetrics")) { | 3660 if (_json.containsKey("requiredMetrics")) { |
| 3661 requiredMetrics = _json["requiredMetrics"]; | 3661 requiredMetrics = _json["requiredMetrics"]; |
| 3662 } | 3662 } |
| 3663 if (_json.containsKey("supportedProducts")) { | 3663 if (_json.containsKey("supportedProducts")) { |
| 3664 supportedProducts = _json["supportedProducts"]; | 3664 supportedProducts = _json["supportedProducts"]; |
| 3665 } | 3665 } |
| 3666 } | 3666 } |
| 3667 | 3667 |
| 3668 core.Map toJson() { | 3668 core.Map<core.String, core.Object> toJson() { |
| 3669 var _json = new core.Map(); | 3669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3670 if (compatibleDimensions != null) { | 3670 if (compatibleDimensions != null) { |
| 3671 _json["compatibleDimensions"] = compatibleDimensions; | 3671 _json["compatibleDimensions"] = compatibleDimensions; |
| 3672 } | 3672 } |
| 3673 if (compatibleMetrics != null) { | 3673 if (compatibleMetrics != null) { |
| 3674 _json["compatibleMetrics"] = compatibleMetrics; | 3674 _json["compatibleMetrics"] = compatibleMetrics; |
| 3675 } | 3675 } |
| 3676 if (id != null) { | 3676 if (id != null) { |
| 3677 _json["id"] = id; | 3677 _json["id"] = id; |
| 3678 } | 3678 } |
| 3679 if (kind != null) { | 3679 if (kind != null) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3716 id = _json["id"]; | 3716 id = _json["id"]; |
| 3717 } | 3717 } |
| 3718 if (_json.containsKey("kind")) { | 3718 if (_json.containsKey("kind")) { |
| 3719 kind = _json["kind"]; | 3719 kind = _json["kind"]; |
| 3720 } | 3720 } |
| 3721 if (_json.containsKey("name")) { | 3721 if (_json.containsKey("name")) { |
| 3722 name = _json["name"]; | 3722 name = _json["name"]; |
| 3723 } | 3723 } |
| 3724 } | 3724 } |
| 3725 | 3725 |
| 3726 core.Map toJson() { | 3726 core.Map<core.String, core.Object> toJson() { |
| 3727 var _json = new core.Map(); | 3727 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3728 if (adStyle != null) { | 3728 if (adStyle != null) { |
| 3729 _json["adStyle"] = (adStyle).toJson(); | 3729 _json["adStyle"] = (adStyle).toJson(); |
| 3730 } | 3730 } |
| 3731 if (id != null) { | 3731 if (id != null) { |
| 3732 _json["id"] = id; | 3732 _json["id"] = id; |
| 3733 } | 3733 } |
| 3734 if (kind != null) { | 3734 if (kind != null) { |
| 3735 _json["kind"] = kind; | 3735 _json["kind"] = kind; |
| 3736 } | 3736 } |
| 3737 if (name != null) { | 3737 if (name != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3764 items = _json["items"].map((value) => new SavedAdStyle.fromJson(value)).to
List(); | 3764 items = _json["items"].map((value) => new SavedAdStyle.fromJson(value)).to
List(); |
| 3765 } | 3765 } |
| 3766 if (_json.containsKey("kind")) { | 3766 if (_json.containsKey("kind")) { |
| 3767 kind = _json["kind"]; | 3767 kind = _json["kind"]; |
| 3768 } | 3768 } |
| 3769 if (_json.containsKey("nextPageToken")) { | 3769 if (_json.containsKey("nextPageToken")) { |
| 3770 nextPageToken = _json["nextPageToken"]; | 3770 nextPageToken = _json["nextPageToken"]; |
| 3771 } | 3771 } |
| 3772 } | 3772 } |
| 3773 | 3773 |
| 3774 core.Map toJson() { | 3774 core.Map<core.String, core.Object> toJson() { |
| 3775 var _json = new core.Map(); | 3775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3776 if (etag != null) { | 3776 if (etag != null) { |
| 3777 _json["etag"] = etag; | 3777 _json["etag"] = etag; |
| 3778 } | 3778 } |
| 3779 if (items != null) { | 3779 if (items != null) { |
| 3780 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3780 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3781 } | 3781 } |
| 3782 if (kind != null) { | 3782 if (kind != null) { |
| 3783 _json["kind"] = kind; | 3783 _json["kind"] = kind; |
| 3784 } | 3784 } |
| 3785 if (nextPageToken != null) { | 3785 if (nextPageToken != null) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 3804 id = _json["id"]; | 3804 id = _json["id"]; |
| 3805 } | 3805 } |
| 3806 if (_json.containsKey("kind")) { | 3806 if (_json.containsKey("kind")) { |
| 3807 kind = _json["kind"]; | 3807 kind = _json["kind"]; |
| 3808 } | 3808 } |
| 3809 if (_json.containsKey("name")) { | 3809 if (_json.containsKey("name")) { |
| 3810 name = _json["name"]; | 3810 name = _json["name"]; |
| 3811 } | 3811 } |
| 3812 } | 3812 } |
| 3813 | 3813 |
| 3814 core.Map toJson() { | 3814 core.Map<core.String, core.Object> toJson() { |
| 3815 var _json = new core.Map(); | 3815 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3816 if (id != null) { | 3816 if (id != null) { |
| 3817 _json["id"] = id; | 3817 _json["id"] = id; |
| 3818 } | 3818 } |
| 3819 if (kind != null) { | 3819 if (kind != null) { |
| 3820 _json["kind"] = kind; | 3820 _json["kind"] = kind; |
| 3821 } | 3821 } |
| 3822 if (name != null) { | 3822 if (name != null) { |
| 3823 _json["name"] = name; | 3823 _json["name"] = name; |
| 3824 } | 3824 } |
| 3825 return _json; | 3825 return _json; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3849 items = _json["items"].map((value) => new SavedReport.fromJson(value)).toL
ist(); | 3849 items = _json["items"].map((value) => new SavedReport.fromJson(value)).toL
ist(); |
| 3850 } | 3850 } |
| 3851 if (_json.containsKey("kind")) { | 3851 if (_json.containsKey("kind")) { |
| 3852 kind = _json["kind"]; | 3852 kind = _json["kind"]; |
| 3853 } | 3853 } |
| 3854 if (_json.containsKey("nextPageToken")) { | 3854 if (_json.containsKey("nextPageToken")) { |
| 3855 nextPageToken = _json["nextPageToken"]; | 3855 nextPageToken = _json["nextPageToken"]; |
| 3856 } | 3856 } |
| 3857 } | 3857 } |
| 3858 | 3858 |
| 3859 core.Map toJson() { | 3859 core.Map<core.String, core.Object> toJson() { |
| 3860 var _json = new core.Map(); | 3860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3861 if (etag != null) { | 3861 if (etag != null) { |
| 3862 _json["etag"] = etag; | 3862 _json["etag"] = etag; |
| 3863 } | 3863 } |
| 3864 if (items != null) { | 3864 if (items != null) { |
| 3865 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3865 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3866 } | 3866 } |
| 3867 if (kind != null) { | 3867 if (kind != null) { |
| 3868 _json["kind"] = kind; | 3868 _json["kind"] = kind; |
| 3869 } | 3869 } |
| 3870 if (nextPageToken != null) { | 3870 if (nextPageToken != null) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 3895 id = _json["id"]; | 3895 id = _json["id"]; |
| 3896 } | 3896 } |
| 3897 if (_json.containsKey("kind")) { | 3897 if (_json.containsKey("kind")) { |
| 3898 kind = _json["kind"]; | 3898 kind = _json["kind"]; |
| 3899 } | 3899 } |
| 3900 if (_json.containsKey("urlPattern")) { | 3900 if (_json.containsKey("urlPattern")) { |
| 3901 urlPattern = _json["urlPattern"]; | 3901 urlPattern = _json["urlPattern"]; |
| 3902 } | 3902 } |
| 3903 } | 3903 } |
| 3904 | 3904 |
| 3905 core.Map toJson() { | 3905 core.Map<core.String, core.Object> toJson() { |
| 3906 var _json = new core.Map(); | 3906 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3907 if (id != null) { | 3907 if (id != null) { |
| 3908 _json["id"] = id; | 3908 _json["id"] = id; |
| 3909 } | 3909 } |
| 3910 if (kind != null) { | 3910 if (kind != null) { |
| 3911 _json["kind"] = kind; | 3911 _json["kind"] = kind; |
| 3912 } | 3912 } |
| 3913 if (urlPattern != null) { | 3913 if (urlPattern != null) { |
| 3914 _json["urlPattern"] = urlPattern; | 3914 _json["urlPattern"] = urlPattern; |
| 3915 } | 3915 } |
| 3916 return _json; | 3916 return _json; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3940 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi
st(); | 3940 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi
st(); |
| 3941 } | 3941 } |
| 3942 if (_json.containsKey("kind")) { | 3942 if (_json.containsKey("kind")) { |
| 3943 kind = _json["kind"]; | 3943 kind = _json["kind"]; |
| 3944 } | 3944 } |
| 3945 if (_json.containsKey("nextPageToken")) { | 3945 if (_json.containsKey("nextPageToken")) { |
| 3946 nextPageToken = _json["nextPageToken"]; | 3946 nextPageToken = _json["nextPageToken"]; |
| 3947 } | 3947 } |
| 3948 } | 3948 } |
| 3949 | 3949 |
| 3950 core.Map toJson() { | 3950 core.Map<core.String, core.Object> toJson() { |
| 3951 var _json = new core.Map(); | 3951 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3952 if (etag != null) { | 3952 if (etag != null) { |
| 3953 _json["etag"] = etag; | 3953 _json["etag"] = etag; |
| 3954 } | 3954 } |
| 3955 if (items != null) { | 3955 if (items != null) { |
| 3956 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3956 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3957 } | 3957 } |
| 3958 if (kind != null) { | 3958 if (kind != null) { |
| 3959 _json["kind"] = kind; | 3959 _json["kind"] = kind; |
| 3960 } | 3960 } |
| 3961 if (nextPageToken != null) { | 3961 if (nextPageToken != null) { |
| 3962 _json["nextPageToken"] = nextPageToken; | 3962 _json["nextPageToken"] = nextPageToken; |
| 3963 } | 3963 } |
| 3964 return _json; | 3964 return _json; |
| 3965 } | 3965 } |
| 3966 } | 3966 } |
| OLD | NEW |