22 lines
440 B
Swift
22 lines
440 B
Swift
|
//
|
||
|
// RequestWrapper+Serializable.swift
|
||
|
// PSCB-OOS-iOS
|
||
|
//
|
||
|
// Created by Antonov Ilia on 18.10.2020.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
extension RequestWrapper: Serializable {
|
||
|
|
||
|
public func serializeToJSON() -> JSONDict {
|
||
|
var json = JSONDict()
|
||
|
json["marketPlace"] = self.marketPlaceId
|
||
|
json["payment"] = self.payment.serializeToJSON()
|
||
|
json["cardData"] = self.cardData
|
||
|
|
||
|
return json
|
||
|
}
|
||
|
|
||
|
}
|