Skip to content

arunkp88/SwiftModelMapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SwiftModelMapper

Model mapper class written in Swift for mapping a given class/struct model to other

USAGE Example:

struct A: Codable {

var id : String? var fName : String? var lName : String?

}

struct B: Codable {

var id : String? var fName : String? var lName : String?

}

let a = A(id: "1", "title": "Arun", "lName": "KP")

let b: B = mapModelItem(modelItem: a)

Work with different keys as well by using the CodingKeys and Decoder functions

About

Model mapper class written in Swift for mapping a given class/struct model to other

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages