You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classFakeEnumimplementsFirestoreSerializableHelper {
finalString _val;
FakeEnum._(this._val);
// demanded constructor by code generated for ModelfactoryFakeEnum.deserialize(String val) =>FakeEnum._(val);
// demanded function by code generated for Model@overrideStringserialize() => _val;
}
@FirestoreDocumentclassModel {
@FirestoreAttribute(customSerialization:true)
FakeEnum fakeEnum;
-> code generator uses by deserialize constructor and serialize function by default, if type has is not ignored, of supported type or not annotated with @FirestoreDocument.
lukas-h
changed the title
Are serialize and deserialize functions in FirestoreAttribute annotation possible?
Custom de-/serialization of models: Are serialize and deserialize functions in FirestoreAttribute annotation possible?
Jul 29, 2020
The text was updated successfully, but these errors were encountered: