クラスの作成
[FirestoreData]
public class FSData
{
[FirestoreProperty]
public Timestamp AccessDate { get; set; }
[FirestoreProperty]
public double IdNumber { get; set; }
[FirestoreProperty]
public string Name { get; set; }
}
データの取得
Google.Cloud.Firestore.DocumentReference docRef = db.Collection("users").Document("Test02");
DocumentSnapshot snapshot = await docRef.GetSnapshotAsync();
if (snapshot.Exists)
{
FSData fSData = snapshot.ConvertTo<FSData>();
}