24 lines
520 B
Swift
24 lines
520 B
Swift
//
|
|
// ResourcesModelStaked.swift
|
|
// Wallet
|
|
//
|
|
// Created by Igor on 27.02.2021.
|
|
// Copyright © 2021 AM. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Resources.Model {
|
|
// swiftlint:disable identifier_name
|
|
struct Staked: Decodable {
|
|
let from: String
|
|
let to: String
|
|
let net_weight: String
|
|
let cpu_weight: String
|
|
}
|
|
}
|
|
|
|
extension Resources.Model.Staked: CommonMenuMappable {
|
|
func toMenu() -> Common.Model.Menu { .menu(uuid: to, image: .account(to), title: to) }
|
|
}
|