Merge branch 'openid-fix-type' into 'master'

[OpenIdCredentials] Fix type

See merge request famedly/famedlysdk!178
This commit is contained in:
Christian Pauly 2020-02-03 09:45:33 +00:00
commit e1335ae2f3

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;
}
}