[OpenIdCredentials] Fix type

This commit is contained in:
Christian Pauly 2020-02-03 09:45:33 +00:00
parent 103eb6734b
commit 0c7efaff62

View file

@ -2,7 +2,7 @@ class OpenIdCredentials {
String accessToken;
String tokenType;
String matrixServerName;
int expiresIn;
num expiresIn;
OpenIdCredentials(
{this.accessToken,
@ -16,4 +16,13 @@ class OpenIdCredentials {
matrixServerName = json['matrix_server_name'];
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;
}
}