| 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.appstate.v1; | 3 library googleapis.appstate.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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 data = _json["data"]; | 292 data = _json["data"]; |
| 293 } | 293 } |
| 294 if (_json.containsKey("kind")) { | 294 if (_json.containsKey("kind")) { |
| 295 kind = _json["kind"]; | 295 kind = _json["kind"]; |
| 296 } | 296 } |
| 297 if (_json.containsKey("stateKey")) { | 297 if (_json.containsKey("stateKey")) { |
| 298 stateKey = _json["stateKey"]; | 298 stateKey = _json["stateKey"]; |
| 299 } | 299 } |
| 300 } | 300 } |
| 301 | 301 |
| 302 core.Map toJson() { | 302 core.Map<core.String, core.Object> toJson() { |
| 303 var _json = new core.Map(); | 303 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 304 if (currentStateVersion != null) { | 304 if (currentStateVersion != null) { |
| 305 _json["currentStateVersion"] = currentStateVersion; | 305 _json["currentStateVersion"] = currentStateVersion; |
| 306 } | 306 } |
| 307 if (data != null) { | 307 if (data != null) { |
| 308 _json["data"] = data; | 308 _json["data"] = data; |
| 309 } | 309 } |
| 310 if (kind != null) { | 310 if (kind != null) { |
| 311 _json["kind"] = kind; | 311 _json["kind"] = kind; |
| 312 } | 312 } |
| 313 if (stateKey != null) { | 313 if (stateKey != null) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 336 items = _json["items"].map((value) => new GetResponse.fromJson(value)).toL
ist(); | 336 items = _json["items"].map((value) => new GetResponse.fromJson(value)).toL
ist(); |
| 337 } | 337 } |
| 338 if (_json.containsKey("kind")) { | 338 if (_json.containsKey("kind")) { |
| 339 kind = _json["kind"]; | 339 kind = _json["kind"]; |
| 340 } | 340 } |
| 341 if (_json.containsKey("maximumKeyCount")) { | 341 if (_json.containsKey("maximumKeyCount")) { |
| 342 maximumKeyCount = _json["maximumKeyCount"]; | 342 maximumKeyCount = _json["maximumKeyCount"]; |
| 343 } | 343 } |
| 344 } | 344 } |
| 345 | 345 |
| 346 core.Map toJson() { | 346 core.Map<core.String, core.Object> toJson() { |
| 347 var _json = new core.Map(); | 347 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 348 if (items != null) { | 348 if (items != null) { |
| 349 _json["items"] = items.map((value) => (value).toJson()).toList(); | 349 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 350 } | 350 } |
| 351 if (kind != null) { | 351 if (kind != null) { |
| 352 _json["kind"] = kind; | 352 _json["kind"] = kind; |
| 353 } | 353 } |
| 354 if (maximumKeyCount != null) { | 354 if (maximumKeyCount != null) { |
| 355 _json["maximumKeyCount"] = maximumKeyCount; | 355 _json["maximumKeyCount"] = maximumKeyCount; |
| 356 } | 356 } |
| 357 return _json; | 357 return _json; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 372 | 372 |
| 373 UpdateRequest.fromJson(core.Map _json) { | 373 UpdateRequest.fromJson(core.Map _json) { |
| 374 if (_json.containsKey("data")) { | 374 if (_json.containsKey("data")) { |
| 375 data = _json["data"]; | 375 data = _json["data"]; |
| 376 } | 376 } |
| 377 if (_json.containsKey("kind")) { | 377 if (_json.containsKey("kind")) { |
| 378 kind = _json["kind"]; | 378 kind = _json["kind"]; |
| 379 } | 379 } |
| 380 } | 380 } |
| 381 | 381 |
| 382 core.Map toJson() { | 382 core.Map<core.String, core.Object> toJson() { |
| 383 var _json = new core.Map(); | 383 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 384 if (data != null) { | 384 if (data != null) { |
| 385 _json["data"] = data; | 385 _json["data"] = data; |
| 386 } | 386 } |
| 387 if (kind != null) { | 387 if (kind != null) { |
| 388 _json["kind"] = kind; | 388 _json["kind"] = kind; |
| 389 } | 389 } |
| 390 return _json; | 390 return _json; |
| 391 } | 391 } |
| 392 } | 392 } |
| 393 | 393 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 410 currentStateVersion = _json["currentStateVersion"]; | 410 currentStateVersion = _json["currentStateVersion"]; |
| 411 } | 411 } |
| 412 if (_json.containsKey("kind")) { | 412 if (_json.containsKey("kind")) { |
| 413 kind = _json["kind"]; | 413 kind = _json["kind"]; |
| 414 } | 414 } |
| 415 if (_json.containsKey("stateKey")) { | 415 if (_json.containsKey("stateKey")) { |
| 416 stateKey = _json["stateKey"]; | 416 stateKey = _json["stateKey"]; |
| 417 } | 417 } |
| 418 } | 418 } |
| 419 | 419 |
| 420 core.Map toJson() { | 420 core.Map<core.String, core.Object> toJson() { |
| 421 var _json = new core.Map(); | 421 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 422 if (currentStateVersion != null) { | 422 if (currentStateVersion != null) { |
| 423 _json["currentStateVersion"] = currentStateVersion; | 423 _json["currentStateVersion"] = currentStateVersion; |
| 424 } | 424 } |
| 425 if (kind != null) { | 425 if (kind != null) { |
| 426 _json["kind"] = kind; | 426 _json["kind"] = kind; |
| 427 } | 427 } |
| 428 if (stateKey != null) { | 428 if (stateKey != null) { |
| 429 _json["stateKey"] = stateKey; | 429 _json["stateKey"] = stateKey; |
| 430 } | 430 } |
| 431 return _json; | 431 return _json; |
| 432 } | 432 } |
| 433 } | 433 } |
| OLD | NEW |