So this method would originally try to convert it to a map then process each field individually. That would work for methods that can be converted, but for some classes it would just crashes. Also, if we just convert it to a map then we lose the class information to reconstruct the object that is expected in return. That's why I made this change.