factory DevCredentials.fromJson(Map<String, dynamic> parsed) { return DevCredentials( endpoint: parsed['endpoint'], token: parsed['token'], userId: parsed['user_id']); }