This PR replaces the ObjectMapper library with Swift's native Codable implementation. Additionally, this PR also makes performJSONOperation templated so the compiler can automatically infer the types being read from server operations (eliminating the need for casting Any => expected type.
The swift compiler can synthesize serialization code so we don't always need to write the boilerplate for reading objects to/from JSON.
This PR replaces the ObjectMapper library with Swift's native Codable implementation. Additionally, this PR also makes
performJSONOperation
templated so the compiler can automatically infer the types being read from server operations (eliminating the need for castingAny
=> expected type.The swift compiler can synthesize serialization code so we don't always need to write the boilerplate for reading objects to/from JSON.