factory OAuthEndpoint.fromJson(Map<String, dynamic> j) => OAuthEndpoint(endpoint: j['endpoint'], clientId: j['client_id']);