Jgafner
10/07/2020, 10:06 AMpublic class SimpleClass {
private String path;
@JsonProperty("somePath")
private void unpackPath(Map<String, Object> somePath) {
this.path = (String) somePath.get("toString");
}
}
When I use the IDE convertor I am getting this:
class SimpleClass {
private var path: String? = null
@JsonProperty("somePath")
private fun unpackPath(somePath: Map<String, Any>) {
path = somePath["toString"] as String?
}
}
Is that correct ?dinomite
10/07/2020, 1:55 PMMap
really String
to any object?