fn key_value_to_str(key_value: &KeyValueProp) -> String
Helper function to extract key as string from KeyValueProp