fix(Sync): Specify default values for Domains entity #753

This commit is contained in:
Artem Chepurnyi 2024-12-20 21:01:59 +02:00
parent 9017f35ce9
commit d03a2ad16c
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
2 changed files with 11 additions and 4 deletions

View File

@ -2,11 +2,14 @@ package com.artemchep.keyguard.provider.bitwarden.entity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonNames
@Serializable
data class DomainsEntity(
@JsonNames("GlobalEquivalentDomains")
@SerialName("globalEquivalentDomains")
val globalEquivalentDomains: List<GlobalEquivalentDomainEntity>?,
val globalEquivalentDomains: List<GlobalEquivalentDomainEntity>? = null,
@JsonNames("EquivalentDomains")
@SerialName("equivalentDomains")
val equivalentDomains: List<List<String>>?,
val equivalentDomains: List<List<String>>? = null,
)

View File

@ -2,13 +2,17 @@ package com.artemchep.keyguard.provider.bitwarden.entity;
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonNames
@Serializable
data class GlobalEquivalentDomainEntity(
@JsonNames("Excluded")
@SerialName("excluded")
val excluded: Boolean,
val excluded: Boolean = false,
@JsonNames("Domains")
@SerialName("domains")
val domains: List<String>?,
val domains: List<String>? = null,
@JsonNames("Type")
@SerialName("type")
val type: Int,
)