save function for SnapshotMetadata
typo in DateJsonCodec