public static void AddCommonData(this DocumentReference documentReference, CommonItemData commonData) { if (commonData != null && commonData.Note != null) { documentReference.AddNoteAsText(commonData.Note); } }