Skip to content

Instantly share code, notes, and snippets.

@bharathreddys77
Created May 23, 2021 07:17
Show Gist options
  • Save bharathreddys77/3d890e91e6e2371a57d563f2b09456d8 to your computer and use it in GitHub Desktop.
Save bharathreddys77/3d890e91e6e2371a57d563f2b09456d8 to your computer and use it in GitHub Desktop.
Encodable login request and Decodable login response
struct LoginResponse:Decodable {
let isSuccess:Bool
let error:NetworkError?
}
struct LoginRequest:Encodable {
let email:String?
let password:String?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment