Map<String, Object?> encode() => { if (appendFsync != null) 'append_fsync': appendFsync!.toTfJson(), };