         if let avatarData = (dictionary["avatar"] as? FlutterStandardTypedData)?.data {
             contact.imageData = avatarData
         }
-        
+
         //Phone numbers
         if let phoneNumbers = dictionary["phones"] as? [[String:String]]{
             for phone in phoneNumbers where phone["value"] != nil {
                 contact.phoneNumbers.append(CNLabeledValue(label:getPhoneLabel(label:phone["label"]),value:CNPhoneNumber(stringValue:phone["value"]!)))
             }
         }
-        
+
         //Emails
         if let emails = dictionary["emails"] as? [[String:String]]{
             for email in emails where nil != email["value"] {

        return result
    }
    
    func addContact(contact : CNMutableContact) -> Bool {
        let store = CNContactStore()
        do{
            let saveRequest = CNSaveRequest()
            saveRequest.add(contact, toContainerWithIdentifier: nil)
            try store.execute(saveRequest)
        }
        catch {
            print(error.localizedDescription)
            return false
        }
        return true
    }
    
    func deleteContact(dictionary : [String:Any]) -> Bool{

            }
        }
        catch{
            NSLog(error.localizedDescription)
            return false;
        }
        return true;
