Skip to content

Commit a0b6b69

Browse files
committed
chore: regenerate sdk
1 parent 748ce4a commit a0b6b69

File tree

97 files changed

+550
-550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+550
-550
lines changed

Sources/AppwriteModels/AlgoArgon2.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ open class AlgoArgon2: Codable {
6565

6666
public static func from(map: [String: Any] ) -> AlgoArgon2 {
6767
return AlgoArgon2(
68-
type: map["type"] as? String ?? "",
69-
memoryCost: map["memoryCost"] as? Int ?? 0,
70-
timeCost: map["timeCost"] as? Int ?? 0,
71-
threads: map["threads"] as? Int ?? 0
68+
type: map["type"] as! String,
69+
memoryCost: map["memoryCost"] as! Int,
70+
timeCost: map["timeCost"] as! Int,
71+
threads: map["threads"] as! Int
7272
)
7373
}
7474
}

Sources/AppwriteModels/AlgoBcrypt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ open class AlgoBcrypt: Codable {
3838

3939
public static func from(map: [String: Any] ) -> AlgoBcrypt {
4040
return AlgoBcrypt(
41-
type: map["type"] as? String ?? ""
41+
type: map["type"] as! String
4242
)
4343
}
4444
}

Sources/AppwriteModels/AlgoMd5.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ open class AlgoMd5: Codable {
3838

3939
public static func from(map: [String: Any] ) -> AlgoMd5 {
4040
return AlgoMd5(
41-
type: map["type"] as? String ?? ""
41+
type: map["type"] as! String
4242
)
4343
}
4444
}

Sources/AppwriteModels/AlgoPhpass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ open class AlgoPhpass: Codable {
3838

3939
public static func from(map: [String: Any] ) -> AlgoPhpass {
4040
return AlgoPhpass(
41-
type: map["type"] as? String ?? ""
41+
type: map["type"] as! String
4242
)
4343
}
4444
}

Sources/AppwriteModels/AlgoScrypt.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ open class AlgoScrypt: Codable {
7474

7575
public static func from(map: [String: Any] ) -> AlgoScrypt {
7676
return AlgoScrypt(
77-
type: map["type"] as? String ?? "",
78-
costCpu: map["costCpu"] as? Int ?? 0,
79-
costMemory: map["costMemory"] as? Int ?? 0,
80-
costParallel: map["costParallel"] as? Int ?? 0,
81-
length: map["length"] as? Int ?? 0
77+
type: map["type"] as! String,
78+
costCpu: map["costCpu"] as! Int,
79+
costMemory: map["costMemory"] as! Int,
80+
costParallel: map["costParallel"] as! Int,
81+
length: map["length"] as! Int
8282
)
8383
}
8484
}

Sources/AppwriteModels/AlgoScryptModified.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ open class AlgoScryptModified: Codable {
6565

6666
public static func from(map: [String: Any] ) -> AlgoScryptModified {
6767
return AlgoScryptModified(
68-
type: map["type"] as? String ?? "",
69-
salt: map["salt"] as? String ?? "",
70-
saltSeparator: map["saltSeparator"] as? String ?? "",
71-
signerKey: map["signerKey"] as? String ?? ""
68+
type: map["type"] as! String,
69+
salt: map["salt"] as! String,
70+
saltSeparator: map["saltSeparator"] as! String,
71+
signerKey: map["signerKey"] as! String
7272
)
7373
}
7474
}

Sources/AppwriteModels/AlgoSha.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ open class AlgoSha: Codable {
3838

3939
public static func from(map: [String: Any] ) -> AlgoSha {
4040
return AlgoSha(
41-
type: map["type"] as? String ?? ""
41+
type: map["type"] as! String
4242
)
4343
}
4444
}

Sources/AppwriteModels/AttributeBoolean.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ open class AttributeBoolean: Codable {
110110

111111
public static func from(map: [String: Any] ) -> AttributeBoolean {
112112
return AttributeBoolean(
113-
key: map["key"] as? String ?? "",
114-
type: map["type"] as? String ?? "",
115-
status: map["status"] as? String ?? "",
116-
error: map["error"] as? String ?? "",
117-
`required`: map["required"] as? Bool ?? false,
113+
key: map["key"] as! String,
114+
type: map["type"] as! String,
115+
status: map["status"] as! String,
116+
error: map["error"] as! String,
117+
`required`: map["required"] as! Bool,
118118
array: map["array"] as? Bool,
119-
createdAt: map["$createdAt"] as? String ?? "",
120-
updatedAt: map["$updatedAt"] as? String ?? "",
119+
createdAt: map["$createdAt"] as! String,
120+
updatedAt: map["$updatedAt"] as! String,
121121
`default`: map["default"] as? Bool
122122
)
123123
}

Sources/AppwriteModels/AttributeDatetime.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ open class AttributeDatetime: Codable {
119119

120120
public static func from(map: [String: Any] ) -> AttributeDatetime {
121121
return AttributeDatetime(
122-
key: map["key"] as? String ?? "",
123-
type: map["type"] as? String ?? "",
124-
status: map["status"] as? String ?? "",
125-
error: map["error"] as? String ?? "",
126-
`required`: map["required"] as? Bool ?? false,
122+
key: map["key"] as! String,
123+
type: map["type"] as! String,
124+
status: map["status"] as! String,
125+
error: map["error"] as! String,
126+
`required`: map["required"] as! Bool,
127127
array: map["array"] as? Bool,
128-
createdAt: map["$createdAt"] as? String ?? "",
129-
updatedAt: map["$updatedAt"] as? String ?? "",
130-
format: map["format"] as? String ?? "",
128+
createdAt: map["$createdAt"] as! String,
129+
updatedAt: map["$updatedAt"] as! String,
130+
format: map["format"] as! String,
131131
`default`: map["default"] as? String
132132
)
133133
}

Sources/AppwriteModels/AttributeEmail.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ open class AttributeEmail: Codable {
119119

120120
public static func from(map: [String: Any] ) -> AttributeEmail {
121121
return AttributeEmail(
122-
key: map["key"] as? String ?? "",
123-
type: map["type"] as? String ?? "",
124-
status: map["status"] as? String ?? "",
125-
error: map["error"] as? String ?? "",
126-
`required`: map["required"] as? Bool ?? false,
122+
key: map["key"] as! String,
123+
type: map["type"] as! String,
124+
status: map["status"] as! String,
125+
error: map["error"] as! String,
126+
`required`: map["required"] as! Bool,
127127
array: map["array"] as? Bool,
128-
createdAt: map["$createdAt"] as? String ?? "",
129-
updatedAt: map["$updatedAt"] as? String ?? "",
130-
format: map["format"] as? String ?? "",
128+
createdAt: map["$createdAt"] as! String,
129+
updatedAt: map["$updatedAt"] as! String,
130+
format: map["format"] as! String,
131131
`default`: map["default"] as? String
132132
)
133133
}

0 commit comments

Comments
 (0)