[OpenIdCredentials] Fix type
This commit is contained in:
parent
103eb6734b
commit
0c7efaff62
|
@ -2,7 +2,7 @@ class OpenIdCredentials {
|
||||||
String accessToken;
|
String accessToken;
|
||||||
String tokenType;
|
String tokenType;
|
||||||
String matrixServerName;
|
String matrixServerName;
|
||||||
int expiresIn;
|
num expiresIn;
|
||||||
|
|
||||||
OpenIdCredentials(
|
OpenIdCredentials(
|
||||||
{this.accessToken,
|
{this.accessToken,
|
||||||
|
@ -16,4 +16,13 @@ class OpenIdCredentials {
|
||||||
matrixServerName = json['matrix_server_name'];
|
matrixServerName = json['matrix_server_name'];
|
||||||
expiresIn = json['expires_in'];
|
expiresIn = json['expires_in'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = Map<String, dynamic>();
|
||||||
|
data['access_token'] = this.accessToken;
|
||||||
|
data['token_type'] = this.tokenType;
|
||||||
|
data['matrix_server_name'] = this.matrixServerName;
|
||||||
|
data['expires_in'] = this.expiresIn;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue