diff --git a/retrofit-jsonapi-converter/src/main/java/com/tanasi/jsonapi/converter/JsonApiRequestConverter.kt b/retrofit-jsonapi-converter/src/main/java/com/tanasi/jsonapi/converter/JsonApiRequestConverter.kt index b631fdb..c5e27a9 100644 --- a/retrofit-jsonapi-converter/src/main/java/com/tanasi/jsonapi/converter/JsonApiRequestConverter.kt +++ b/retrofit-jsonapi-converter/src/main/java/com/tanasi/jsonapi/converter/JsonApiRequestConverter.kt @@ -83,7 +83,7 @@ class JsonApiRequestConverter : Converter { } else -> when { it.prop.isJsonApiAttribute() -> { - attributes.put(it.prop.name, it.prop.call(value) ?: JSONObject.NULL) + attributes.put(it.prop.name, propValue ?: JSONObject.NULL) } it.prop.isJsonApiRelationship() -> { relationships.put(it.prop.name,