| 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.oauth2.v2; | 3 library googleapis.oauth2.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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 kty = _json["kty"]; | 237 kty = _json["kty"]; |
| 238 } | 238 } |
| 239 if (_json.containsKey("n")) { | 239 if (_json.containsKey("n")) { |
| 240 n = _json["n"]; | 240 n = _json["n"]; |
| 241 } | 241 } |
| 242 if (_json.containsKey("use")) { | 242 if (_json.containsKey("use")) { |
| 243 use = _json["use"]; | 243 use = _json["use"]; |
| 244 } | 244 } |
| 245 } | 245 } |
| 246 | 246 |
| 247 core.Map toJson() { | 247 core.Map<core.String, core.Object> toJson() { |
| 248 var _json = new core.Map(); | 248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 249 if (alg != null) { | 249 if (alg != null) { |
| 250 _json["alg"] = alg; | 250 _json["alg"] = alg; |
| 251 } | 251 } |
| 252 if (e != null) { | 252 if (e != null) { |
| 253 _json["e"] = e; | 253 _json["e"] = e; |
| 254 } | 254 } |
| 255 if (kid != null) { | 255 if (kid != null) { |
| 256 _json["kid"] = kid; | 256 _json["kid"] = kid; |
| 257 } | 257 } |
| 258 if (kty != null) { | 258 if (kty != null) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 272 core.List<JwkKeys> keys; | 272 core.List<JwkKeys> keys; |
| 273 | 273 |
| 274 Jwk(); | 274 Jwk(); |
| 275 | 275 |
| 276 Jwk.fromJson(core.Map _json) { | 276 Jwk.fromJson(core.Map _json) { |
| 277 if (_json.containsKey("keys")) { | 277 if (_json.containsKey("keys")) { |
| 278 keys = _json["keys"].map((value) => new JwkKeys.fromJson(value)).toList(); | 278 keys = _json["keys"].map((value) => new JwkKeys.fromJson(value)).toList(); |
| 279 } | 279 } |
| 280 } | 280 } |
| 281 | 281 |
| 282 core.Map toJson() { | 282 core.Map<core.String, core.Object> toJson() { |
| 283 var _json = new core.Map(); | 283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 284 if (keys != null) { | 284 if (keys != null) { |
| 285 _json["keys"] = keys.map((value) => (value).toJson()).toList(); | 285 _json["keys"] = keys.map((value) => (value).toJson()).toList(); |
| 286 } | 286 } |
| 287 return _json; | 287 return _json; |
| 288 } | 288 } |
| 289 } | 289 } |
| 290 | 290 |
| 291 class Tokeninfo { | 291 class Tokeninfo { |
| 292 /** The access type granted with this token. It can be offline or online. */ | 292 /** The access type granted with this token. It can be offline or online. */ |
| 293 core.String accessType; | 293 core.String accessType; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 tokenHandle = _json["token_handle"]; | 342 tokenHandle = _json["token_handle"]; |
| 343 } | 343 } |
| 344 if (_json.containsKey("user_id")) { | 344 if (_json.containsKey("user_id")) { |
| 345 userId = _json["user_id"]; | 345 userId = _json["user_id"]; |
| 346 } | 346 } |
| 347 if (_json.containsKey("verified_email")) { | 347 if (_json.containsKey("verified_email")) { |
| 348 verifiedEmail = _json["verified_email"]; | 348 verifiedEmail = _json["verified_email"]; |
| 349 } | 349 } |
| 350 } | 350 } |
| 351 | 351 |
| 352 core.Map toJson() { | 352 core.Map<core.String, core.Object> toJson() { |
| 353 var _json = new core.Map(); | 353 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 354 if (accessType != null) { | 354 if (accessType != null) { |
| 355 _json["access_type"] = accessType; | 355 _json["access_type"] = accessType; |
| 356 } | 356 } |
| 357 if (audience != null) { | 357 if (audience != null) { |
| 358 _json["audience"] = audience; | 358 _json["audience"] = audience; |
| 359 } | 359 } |
| 360 if (email != null) { | 360 if (email != null) { |
| 361 _json["email"] = email; | 361 _json["email"] = email; |
| 362 } | 362 } |
| 363 if (expiresIn != null) { | 363 if (expiresIn != null) { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 name = _json["name"]; | 440 name = _json["name"]; |
| 441 } | 441 } |
| 442 if (_json.containsKey("picture")) { | 442 if (_json.containsKey("picture")) { |
| 443 picture = _json["picture"]; | 443 picture = _json["picture"]; |
| 444 } | 444 } |
| 445 if (_json.containsKey("verified_email")) { | 445 if (_json.containsKey("verified_email")) { |
| 446 verifiedEmail = _json["verified_email"]; | 446 verifiedEmail = _json["verified_email"]; |
| 447 } | 447 } |
| 448 } | 448 } |
| 449 | 449 |
| 450 core.Map toJson() { | 450 core.Map<core.String, core.Object> toJson() { |
| 451 var _json = new core.Map(); | 451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 452 if (email != null) { | 452 if (email != null) { |
| 453 _json["email"] = email; | 453 _json["email"] = email; |
| 454 } | 454 } |
| 455 if (familyName != null) { | 455 if (familyName != null) { |
| 456 _json["family_name"] = familyName; | 456 _json["family_name"] = familyName; |
| 457 } | 457 } |
| 458 if (gender != null) { | 458 if (gender != null) { |
| 459 _json["gender"] = gender; | 459 _json["gender"] = gender; |
| 460 } | 460 } |
| 461 if (givenName != null) { | 461 if (givenName != null) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 478 } | 478 } |
| 479 if (picture != null) { | 479 if (picture != null) { |
| 480 _json["picture"] = picture; | 480 _json["picture"] = picture; |
| 481 } | 481 } |
| 482 if (verifiedEmail != null) { | 482 if (verifiedEmail != null) { |
| 483 _json["verified_email"] = verifiedEmail; | 483 _json["verified_email"] = verifiedEmail; |
| 484 } | 484 } |
| 485 return _json; | 485 return _json; |
| 486 } | 486 } |
| 487 } | 487 } |
| OLD | NEW |