jsoncreator_app/JSONCreator_iOS/JSONCreator/5G/MFFGHSUtility.swift

18 lines
488 B
Swift

import MVMCore
import MVMCoreUI
extension ViewController {
public func fivegBLEConfig() throws -> BluetoothConfigModel {
guard let json = loadObject?.modulesJSON?.dictionaryWithChainOfKeysOrIndexes(["fivegBleUuid", "fivegBleUuid"]) else {
throw BluetoothConfigError.noJSONFound
}
return try BluetoothConfigModel.decode(jsonDict: json, delegateObject: nil)
}
}
extension Collection {
var isNotEmpty: Bool {
return !isEmpty
}
}