class OpenIdCredentials { String accessToken; String tokenType; String matrixServerName; num expiresIn; OpenIdCredentials( {this.accessToken, this.tokenType, this.matrixServerName, this.expiresIn}); OpenIdCredentials.fromJson(Map json) { accessToken = json['access_token']; tokenType = json['token_type']; matrixServerName = json['matrix_server_name']; expiresIn = json['expires_in']; } Map toJson() { var map = {}; final data = map; data['access_token'] = accessToken; data['token_type'] = tokenType; data['matrix_server_name'] = matrixServerName; data['expires_in'] = expiresIn; return data; } }