diff --git a/android/src/main/kotlin/com/instrumentisto/medea_flutter_webrtc/model/RtpTransceiverInit.kt b/android/src/main/kotlin/com/instrumentisto/medea_flutter_webrtc/model/RtpTransceiverInit.kt index c941ee415d..b5949f85eb 100644 --- a/android/src/main/kotlin/com/instrumentisto/medea_flutter_webrtc/model/RtpTransceiverInit.kt +++ b/android/src/main/kotlin/com/instrumentisto/medea_flutter_webrtc/model/RtpTransceiverInit.kt @@ -22,7 +22,7 @@ data class RtpTransceiverInit( fun fromMap(map: Map): RtpTransceiverInit { return RtpTransceiverInit( RtpTransceiverDirection.fromInt(map["direction"] as Int), - (map["sendEncodings"] as Map>).map { encoding -> + (map["sendEncodings"] as List>>).map { encoding -> Encoding.fromMap(encoding.value) }) }