Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. // This file was generated from JSON Schema using quicktype, do not modify it directly.
  2. // To parse the JSON, add this file to your project and do:
  3. //
  4. // let bookShareModel = try? newJSONDecoder().decode(BookShareModel.self, from: jsonData)
  5.  
  6. import Foundation
  7.  
  8. // MARK: - BookShareModel
  9. struct BookShareModel: Codable {
  10. let realFactor, dolarFactor, euroFactor: Double
  11. let shares: [Share]
  12. }
  13.  
  14. // MARK: - Share
  15. struct Share: Codable {
  16. let titleReal: String
  17. let titleDolar, titleEuro: String?
  18. let factor: String
  19. let bars, type, nationality, assetClass: [AssetClass]
  20. let dolarReal, euroReal: String?
  21. }
  22.  
  23. // MARK: - AssetClass
  24. struct AssetClass: Codable {
  25. let value: Double
  26. let label: String
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement