public Task SaveAccountDetailsAsync(AccountDetails accountDetails) { string json = JsonSerializer.Serialize(accountDetails); return(_fileSystem.WriteStringAsync("account.json", json)); }
private Task SaveFSChallengeFormat(FSChallengeFormat fsChallengeFormat) { string json = JsonSerializer.Serialize(fsChallengeFormat); return(_fileSystem.WriteStringAsync("challenges.json", json)); }
private Task SaveFileSystemCertCollectionFormat(FileSystemCertCollectionFormat fileSystemCertCollectionFormat) { string json = JsonSerializer.Serialize(fileSystemCertCollectionFormat); return(_fileSystem.WriteStringAsync("certs.json", json)); }