tristanhimmelman

AlamofireObjectMapper

tristanhimmelman

An Alamofire extension which converts JSON response data into swift objects using ObjectMapper

AI 简介

AlamofireObjectMapper 是一个 Swift 语言的网络请求扩展库,用于将 Alamofire 获取的 JSON 响应自动映射为自定义 Swift 对象。其核心功能是通过泛型 `responseObject` 方法,在 HTTP 请求完成后直接解析 JSON 并实例化符合 ObjectMapper `Mappable` 协议的模型类,支持嵌套对象与数组映射。技术上依赖 Alamofire(网络层)与 ObjectMapper(序列化层),采用声明式 mapping 规则,无需手动解析字典或键值对。适用于 iOS/macOS 开发中需频繁对接 RESTful API、追求类型安全与模型解耦的移动应用项目。

Swift
MIT License
2.6k
Stars
474
Forks
47
Watchers
52
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分30.03
默认分支master