0

在 Flutter 上的 Firestore 中保存CalendarListEntry对象曾经可以工作。但是在将我的Googleapis升级到之后v7.0.0,它开始引发Invalid argument: Instance of 'ConferenceProperties'错误。我认为这是因为这个commit

如何在 Flutter 的 Firestore 中保存 CalendarListEntry 对象?

我用过Freezed。我的模型看起来像这样。

@freezed
class GoogleCalendarProject with _$GoogleCalendarProject {
  const factory GoogleCalendarProject({
    required CalendarListEntry calendar,
    @DocumentReferenceNullableConverter() DocumentReference? projectRef,
  }) = _GoogleCalendarProject;
  factory GoogleCalendarProject.fromJson(Map<String, dynamic> json) =>
      _$GoogleCalendarProjectFromJson(json);
}
4

0 回答 0