Set default value for optional params

This commit is contained in:
Hugh Nimmo-Smith 2022-10-13 16:08:50 +01:00
parent 579df74257
commit b5e81d27d6
1 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,6 @@ import org.matrix.android.sdk.api.auth.data.LoginFlowTypes
internal data class TokenLoginParams(
@Json(name = "type") override val type: String = LoginFlowTypes.TOKEN,
@Json(name = "token") val token: String,
@Json(name = "initial_device_display_name") override val deviceDisplayName: String?,
@Json(name = "device_id") override val deviceId: String?
@Json(name = "initial_device_display_name") override val deviceDisplayName: String? = null,
@Json(name = "device_id") override val deviceId: String? = null
) : LoginParams