You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

85 lines
1.9 KiB

//
// NotificationListModel.swift
// GME Remit
//
// Created by yare on 7/30/22.
// Copyright © 2022 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
import ObjectMapper
struct NotificationList: Mappable {
var rowID: String?
var customerID: String?
var title: String?
var body: String?
var createDate: String?
var isRead: String?
var type: String?
var extra: String?
var category: String?
var url: String?
var isClickable: String?
init?(map: Map) {}
init(
rowID: String?,
customerID: String?,
title: String?,
body: String?,
createDate: String?,
isRead: String?,
type: String?,
extra: String?,
category: String?,
url: String?,
isClickable: String?
) {
self.rowID = rowID
self.customerID = customerID
self.title = title
self.body = body
self.createDate = createDate
self.isRead = isRead
self.type = type
self.extra = extra
self.category = category
self.url = url
self.isClickable = isClickable
}
mutating func mapping(map: Map) {
rowID <- map["rowId"]
customerID <- map["customerId"]
title <- map["title"]
body <- map["body"]
createDate <- map["createDate"]
type <- map["type"]
isRead <- map["isRead"]
extra <- map["extra"]
category <- map["category"]
url <- map["url"]
isClickable <- map["isClickable"]
}
func serialize() -> [String : String] {
return [
"rowId": rowID ?? "",
"customerId": customerID ?? "",
"title": title ?? "",
"body": body ?? "",
"createDate": createDate ?? "",
"isRead": isRead ?? "",
"type": type ?? "",
"extra": extra ?? "",
"category": category ?? "",
"url": url ?? "",
"isClickable": isClickable ?? ""
]
}
}