mirror of
https://github.com/AChep/keyguard-app.git
synced 2025-01-04 18:59:15 +01:00
fix(Sync): Specify default values for Domains entity #753
This commit is contained in:
parent
9017f35ce9
commit
d03a2ad16c
@ -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,
|
||||
)
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user