         self.jsonschedules = store.decodedjson as? [DecodeScheduleJSON]
         if let jsonschedules = self.jsonschedules {
             self.transformedschedules = [ConfigurationSchedule]()
+            let transform = TransformSchedulefromJSON()
             for i in 0 ..< jsonschedules.count {
-                var transformed = transformschedules(object: jsonschedules[i])
+                var transformed = transform.transform(object: jsonschedules[i])
                 transformed.profilename = self.profile
                 self.transformedschedules?.append(transformed)
             }

//  Created by Thomas Evensen on 22/10/2020.
//  Copyright © 2020 Thomas Evensen. All rights reserved.
//
// swiftlint:disable cyclomatic_complexity function_body_length trailing_comma line_length

import Foundation


        self.jsonconfigurations = store.decodedjson as? [DecodeConfigJSON]
        if let jsonconfigurations = self.jsonconfigurations {
            self.transformedconfigurations = [Configuration]()
            let transform = TransformConfigfromJSON()
            for i in 0 ..< jsonconfigurations.count {
                let transformed = transform.transform(object: jsonconfigurations[i])
                if ViewControllerReference.shared.synctasks.contains(transformed.task) {
                    self.transformedconfigurations?.append(transformed)
                }
