module DingSDK::Utils
def self.unmarshal_complex(data, type)
def self.unmarshal_complex(data, type) begin value = unmarshal_json(JSON.parse(data), type) rescue TypeError, JSON::ParserError value = unmarshal_json(data, type) end value end
def self.unmarshal_complex(data, type) begin value = unmarshal_json(JSON.parse(data), type) rescue TypeError, JSON::ParserError value = unmarshal_json(data, type) end value end