|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2018, Marcin Marek Gocał |
| 2 | + * Copyright (c) 2020, Marek Gocał |
3 | 3 | * All rights reserved. Use of this source code is governed by a
|
4 | 4 | * BSD-style license that can be found in the LICENSE file.
|
5 | 5 | */
|
@@ -90,18 +90,19 @@ class Auth {
|
90 | 90 | @JsonKey(name: 'service_account_key_path', nullable: true)
|
91 | 91 | String serviceAccountKeyPath;
|
92 | 92 |
|
93 |
| - Auth({this.oauthClientId, |
94 |
| - this.oauthClientIdPath, |
95 |
| - this.serviceAccountKey, |
96 |
| - this.serviceAccountKeyPath}); |
| 93 | + Auth( |
| 94 | + {this.oauthClientId, |
| 95 | + this.oauthClientIdPath, |
| 96 | + this.serviceAccountKey, |
| 97 | + this.serviceAccountKeyPath}); |
97 | 98 |
|
98 | 99 | factory Auth.fromJson(Map<String, dynamic> json) => _$AuthFromJson(json);
|
99 | 100 |
|
100 | 101 | Map<String, dynamic> toJson() => _$AuthToJson(this);
|
101 | 102 | }
|
102 | 103 |
|
103 | 104 | ///
|
104 |
| -/// OAuthClientId |
| 105 | +/// OAuthClientId |
105 | 106 | ///
|
106 | 107 | @JsonSerializable()
|
107 | 108 | class OAuthClientId {
|
@@ -154,16 +155,17 @@ class ServiceAccountKey {
|
154 | 155 | @JsonKey(name: 'client_x509_cert_url', nullable: false)
|
155 | 156 | String clientX509CertUrl;
|
156 | 157 |
|
157 |
| - ServiceAccountKey({this.type, |
158 |
| - @required this.projectId, |
159 |
| - @required this.privateKeyId, |
160 |
| - @required this.privateKey, |
161 |
| - @required this.clientEmail, |
| 158 | + ServiceAccountKey( |
| 159 | + {this.type, |
| 160 | + @required this.projectId, |
| 161 | + @required this.privateKeyId, |
| 162 | + @required this.privateKey, |
| 163 | + @required this.clientEmail, |
162 | 164 | this.clientId,
|
163 | 165 | this.authUri,
|
164 | 166 | this.tokenUri,
|
165 | 167 | this.authProviderX509CertUrl,
|
166 |
| - this.clientX509CertUrl}); |
| 168 | + this.clientX509CertUrl}); |
167 | 169 |
|
168 | 170 | factory ServiceAccountKey.fromJson(Map<String, dynamic> json) =>
|
169 | 171 | _$ServiceAccountKeyFromJson(json);
|
|
0 commit comments