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.content.v2; | 3 library googleapis.content.v2; |
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 4047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4058 if (kind != null) { | 4058 if (kind != null) { |
4059 _json["kind"] = kind; | 4059 _json["kind"] = kind; |
4060 } | 4060 } |
4061 return _json; | 4061 return _json; |
4062 } | 4062 } |
4063 } | 4063 } |
4064 | 4064 |
4065 class AccountStatusDataQualityIssue { | 4065 class AccountStatusDataQualityIssue { |
4066 /** Country for which this issue is reported. */ | 4066 /** Country for which this issue is reported. */ |
4067 core.String country; | 4067 core.String country; |
| 4068 /** A more detailed description of the issue. */ |
| 4069 core.String detail; |
4068 /** Actual value displayed on the landing page. */ | 4070 /** Actual value displayed on the landing page. */ |
4069 core.String displayedValue; | 4071 core.String displayedValue; |
4070 /** Example items featuring the issue. */ | 4072 /** Example items featuring the issue. */ |
4071 core.List<AccountStatusExampleItem> exampleItems; | 4073 core.List<AccountStatusExampleItem> exampleItems; |
4072 /** Issue identifier. */ | 4074 /** Issue identifier. */ |
4073 core.String id; | 4075 core.String id; |
4074 /** Last time the account was checked for this issue. */ | 4076 /** Last time the account was checked for this issue. */ |
4075 core.String lastChecked; | 4077 core.String lastChecked; |
| 4078 /** The attribute name that is relevant for the issue. */ |
| 4079 core.String location; |
4076 /** Number of items in the account found to have the said issue. */ | 4080 /** Number of items in the account found to have the said issue. */ |
4077 core.int numItems; | 4081 core.int numItems; |
4078 /** Severity of the problem. */ | 4082 /** Severity of the problem. */ |
4079 core.String severity; | 4083 core.String severity; |
4080 /** Submitted value that causes the issue. */ | 4084 /** Submitted value that causes the issue. */ |
4081 core.String submittedValue; | 4085 core.String submittedValue; |
4082 | 4086 |
4083 AccountStatusDataQualityIssue(); | 4087 AccountStatusDataQualityIssue(); |
4084 | 4088 |
4085 AccountStatusDataQualityIssue.fromJson(core.Map _json) { | 4089 AccountStatusDataQualityIssue.fromJson(core.Map _json) { |
4086 if (_json.containsKey("country")) { | 4090 if (_json.containsKey("country")) { |
4087 country = _json["country"]; | 4091 country = _json["country"]; |
4088 } | 4092 } |
| 4093 if (_json.containsKey("detail")) { |
| 4094 detail = _json["detail"]; |
| 4095 } |
4089 if (_json.containsKey("displayedValue")) { | 4096 if (_json.containsKey("displayedValue")) { |
4090 displayedValue = _json["displayedValue"]; | 4097 displayedValue = _json["displayedValue"]; |
4091 } | 4098 } |
4092 if (_json.containsKey("exampleItems")) { | 4099 if (_json.containsKey("exampleItems")) { |
4093 exampleItems = _json["exampleItems"].map((value) => new AccountStatusExamp
leItem.fromJson(value)).toList(); | 4100 exampleItems = _json["exampleItems"].map((value) => new AccountStatusExamp
leItem.fromJson(value)).toList(); |
4094 } | 4101 } |
4095 if (_json.containsKey("id")) { | 4102 if (_json.containsKey("id")) { |
4096 id = _json["id"]; | 4103 id = _json["id"]; |
4097 } | 4104 } |
4098 if (_json.containsKey("lastChecked")) { | 4105 if (_json.containsKey("lastChecked")) { |
4099 lastChecked = _json["lastChecked"]; | 4106 lastChecked = _json["lastChecked"]; |
4100 } | 4107 } |
| 4108 if (_json.containsKey("location")) { |
| 4109 location = _json["location"]; |
| 4110 } |
4101 if (_json.containsKey("numItems")) { | 4111 if (_json.containsKey("numItems")) { |
4102 numItems = _json["numItems"]; | 4112 numItems = _json["numItems"]; |
4103 } | 4113 } |
4104 if (_json.containsKey("severity")) { | 4114 if (_json.containsKey("severity")) { |
4105 severity = _json["severity"]; | 4115 severity = _json["severity"]; |
4106 } | 4116 } |
4107 if (_json.containsKey("submittedValue")) { | 4117 if (_json.containsKey("submittedValue")) { |
4108 submittedValue = _json["submittedValue"]; | 4118 submittedValue = _json["submittedValue"]; |
4109 } | 4119 } |
4110 } | 4120 } |
4111 | 4121 |
4112 core.Map toJson() { | 4122 core.Map toJson() { |
4113 var _json = new core.Map(); | 4123 var _json = new core.Map(); |
4114 if (country != null) { | 4124 if (country != null) { |
4115 _json["country"] = country; | 4125 _json["country"] = country; |
4116 } | 4126 } |
| 4127 if (detail != null) { |
| 4128 _json["detail"] = detail; |
| 4129 } |
4117 if (displayedValue != null) { | 4130 if (displayedValue != null) { |
4118 _json["displayedValue"] = displayedValue; | 4131 _json["displayedValue"] = displayedValue; |
4119 } | 4132 } |
4120 if (exampleItems != null) { | 4133 if (exampleItems != null) { |
4121 _json["exampleItems"] = exampleItems.map((value) => (value).toJson()).toLi
st(); | 4134 _json["exampleItems"] = exampleItems.map((value) => (value).toJson()).toLi
st(); |
4122 } | 4135 } |
4123 if (id != null) { | 4136 if (id != null) { |
4124 _json["id"] = id; | 4137 _json["id"] = id; |
4125 } | 4138 } |
4126 if (lastChecked != null) { | 4139 if (lastChecked != null) { |
4127 _json["lastChecked"] = lastChecked; | 4140 _json["lastChecked"] = lastChecked; |
4128 } | 4141 } |
| 4142 if (location != null) { |
| 4143 _json["location"] = location; |
| 4144 } |
4129 if (numItems != null) { | 4145 if (numItems != null) { |
4130 _json["numItems"] = numItems; | 4146 _json["numItems"] = numItems; |
4131 } | 4147 } |
4132 if (severity != null) { | 4148 if (severity != null) { |
4133 _json["severity"] = severity; | 4149 _json["severity"] = severity; |
4134 } | 4150 } |
4135 if (submittedValue != null) { | 4151 if (submittedValue != null) { |
4136 _json["submittedValue"] = submittedValue; | 4152 _json["submittedValue"] = submittedValue; |
4137 } | 4153 } |
4138 return _json; | 4154 return _json; |
(...skipping 7901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12040 var _json = new core.Map(); | 12056 var _json = new core.Map(); |
12041 if (unit != null) { | 12057 if (unit != null) { |
12042 _json["unit"] = unit; | 12058 _json["unit"] = unit; |
12043 } | 12059 } |
12044 if (value != null) { | 12060 if (value != null) { |
12045 _json["value"] = value; | 12061 _json["value"] = value; |
12046 } | 12062 } |
12047 return _json; | 12063 return _json; |
12048 } | 12064 } |
12049 } | 12065 } |
OLD | NEW |