Kotlin realm setting embedded object as null with Flexible Sync

I am using Flexible sync in my kotlin application.

I have a Employee model with the following schema

class EmployeeModel : RealmObject {
    @PrimaryKey
    var _id: ObjectId = BsonObjectId()
    var store_id: String = ""

    @PersistedName("is_admin")
    var isAdmin: Boolean = false
    var username: String = ""
    var name: String = ""
    @PersistedName("password")
    var password: PasswordModel? = null
    var email: String? = null
    var phone: String? = null
    @PersistedName("is_activated")
    var isActivated: Boolean = true
    @PersistedName("permission_role")
    var permissionRole: PermissionRoleModel? = null
    @PersistedName("date_created")
    var dateCreated: Double = System.currentTimeMillis().toDouble()
    @PersistedName("date_modified")
    var dateModified: Double = 0.0
    @PersistedName("joining_date")
    var joiningDate: Double = 0.0
    var kyc: RealmList<KycModel> = realmListOf()
    @PersistedName("salary_detail")
    var salaryDetail: EmployeeSalaryDetail? = null
    @PersistedName("salary_account")
    var salaryAccount: PaymentAccountModel? = null
    @PersistedName("salary_advance")
    var salaryAdvance: EmployeeSalaryAdvance? = null
    var dob: String? = null
    @PersistedName("reset_password_on_login")
    var resetPasswordOnLogin: Boolean = false
    @PersistedName("last_logged_on")
    var lastLoggedOn: Double = 0.0
}

and Password model as

class PasswordModel : EmbeddedRealmObject {
    var salt: String = ""
    var hash: String = ""
}

I am using FlexibleSync and my Employee models are getting synced but all the embedded objects such as password is syncing as null

Hello @Gaurav_Bordoloi , :wave:

Welcome to MongoDB Community!

Thank you for raising your concern. The provided information may not be enough to know why the embedded objects are syncing null.

Could you please share the code snippets of the Realm Write Transactions as well?

I look forward to your response.

Cheers, :performing_arts:
Henna