| 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.adexchangebuyer.v1_3; | 3 library googleapis.adexchangebuyer.v1_3; |
| 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 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1998 return _json; | 1998 return _json; |
| 1999 } | 1999 } |
| 2000 } | 2000 } |
| 2001 | 2001 |
| 2002 /** The configuration data for an Ad Exchange direct deal. */ | 2002 /** The configuration data for an Ad Exchange direct deal. */ |
| 2003 class DirectDeal { | 2003 class DirectDeal { |
| 2004 /** The account id of the buyer this deal is for. */ | 2004 /** The account id of the buyer this deal is for. */ |
| 2005 core.int accountId; | 2005 core.int accountId; |
| 2006 /** The name of the advertiser this deal is for. */ | 2006 /** The name of the advertiser this deal is for. */ |
| 2007 core.String advertiser; | 2007 core.String advertiser; |
| 2008 /** Whether the publisher for this deal is eligible for alcohol ads. */ |
| 2009 core.bool allowsAlcohol; |
| 2008 /** | 2010 /** |
| 2009 * The currency code that applies to the fixed_cpm value. If not set then | 2011 * The currency code that applies to the fixed_cpm value. If not set then |
| 2010 * assumed to be USD. | 2012 * assumed to be USD. |
| 2011 */ | 2013 */ |
| 2012 core.String currencyCode; | 2014 core.String currencyCode; |
| 2013 /** | 2015 /** |
| 2014 * The deal type such as programmatic reservation or fixed price and so on. | 2016 * The deal type such as programmatic reservation or fixed price and so on. |
| 2015 */ | 2017 */ |
| 2016 core.String dealTier; | 2018 core.String dealTier; |
| 2017 /** | 2019 /** |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2054 | 2056 |
| 2055 DirectDeal(); | 2057 DirectDeal(); |
| 2056 | 2058 |
| 2057 DirectDeal.fromJson(core.Map _json) { | 2059 DirectDeal.fromJson(core.Map _json) { |
| 2058 if (_json.containsKey("accountId")) { | 2060 if (_json.containsKey("accountId")) { |
| 2059 accountId = _json["accountId"]; | 2061 accountId = _json["accountId"]; |
| 2060 } | 2062 } |
| 2061 if (_json.containsKey("advertiser")) { | 2063 if (_json.containsKey("advertiser")) { |
| 2062 advertiser = _json["advertiser"]; | 2064 advertiser = _json["advertiser"]; |
| 2063 } | 2065 } |
| 2066 if (_json.containsKey("allowsAlcohol")) { |
| 2067 allowsAlcohol = _json["allowsAlcohol"]; |
| 2068 } |
| 2064 if (_json.containsKey("currencyCode")) { | 2069 if (_json.containsKey("currencyCode")) { |
| 2065 currencyCode = _json["currencyCode"]; | 2070 currencyCode = _json["currencyCode"]; |
| 2066 } | 2071 } |
| 2067 if (_json.containsKey("dealTier")) { | 2072 if (_json.containsKey("dealTier")) { |
| 2068 dealTier = _json["dealTier"]; | 2073 dealTier = _json["dealTier"]; |
| 2069 } | 2074 } |
| 2070 if (_json.containsKey("endTime")) { | 2075 if (_json.containsKey("endTime")) { |
| 2071 endTime = _json["endTime"]; | 2076 endTime = _json["endTime"]; |
| 2072 } | 2077 } |
| 2073 if (_json.containsKey("fixedCpm")) { | 2078 if (_json.containsKey("fixedCpm")) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2097 } | 2102 } |
| 2098 | 2103 |
| 2099 core.Map toJson() { | 2104 core.Map toJson() { |
| 2100 var _json = new core.Map(); | 2105 var _json = new core.Map(); |
| 2101 if (accountId != null) { | 2106 if (accountId != null) { |
| 2102 _json["accountId"] = accountId; | 2107 _json["accountId"] = accountId; |
| 2103 } | 2108 } |
| 2104 if (advertiser != null) { | 2109 if (advertiser != null) { |
| 2105 _json["advertiser"] = advertiser; | 2110 _json["advertiser"] = advertiser; |
| 2106 } | 2111 } |
| 2112 if (allowsAlcohol != null) { |
| 2113 _json["allowsAlcohol"] = allowsAlcohol; |
| 2114 } |
| 2107 if (currencyCode != null) { | 2115 if (currencyCode != null) { |
| 2108 _json["currencyCode"] = currencyCode; | 2116 _json["currencyCode"] = currencyCode; |
| 2109 } | 2117 } |
| 2110 if (dealTier != null) { | 2118 if (dealTier != null) { |
| 2111 _json["dealTier"] = dealTier; | 2119 _json["dealTier"] = dealTier; |
| 2112 } | 2120 } |
| 2113 if (endTime != null) { | 2121 if (endTime != null) { |
| 2114 _json["endTime"] = endTime; | 2122 _json["endTime"] = endTime; |
| 2115 } | 2123 } |
| 2116 if (fixedCpm != null) { | 2124 if (fixedCpm != null) { |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2791 var _json = new core.Map(); | 2799 var _json = new core.Map(); |
| 2792 if (items != null) { | 2800 if (items != null) { |
| 2793 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2801 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2794 } | 2802 } |
| 2795 if (kind != null) { | 2803 if (kind != null) { |
| 2796 _json["kind"] = kind; | 2804 _json["kind"] = kind; |
| 2797 } | 2805 } |
| 2798 return _json; | 2806 return _json; |
| 2799 } | 2807 } |
| 2800 } | 2808 } |
| OLD | NEW |