Skip to content

Commit e66bdd2

Browse files
committed
update README
1 parent c09e94d commit e66bdd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
### **Convenience**
4949

50-
- **Property Ignoring** – Skip specific properties with `@IgnoredKey`, including non-`Codable` fields.
50+
- **Property Ignoring** – Skip specific properties with `@SmartIgnored`, including non-`Codable` fields.
5151
- **Flexible Input Formats** – Deserialize from dictionaries, arrays, JSON strings, or `Data`.
5252

5353
### **Callbacks**
@@ -346,13 +346,13 @@ print(model)
346346

347347

348348

349-
#### 3.2 @IgnoredKey
349+
#### 3.2 @SmartIgnored
350350

351-
If you need to ignore the parsing of attributes, you can override `CodingKeys` or use `@IgnoredKey`.
351+
If you need to ignore the parsing of attributes, you can override `CodingKeys` or use `@SmartIgnored`.
352352

353353
```swift
354354
struct Model: SmartCodableX {
355-
@IgnoredKey
355+
@SmartIgnored
356356
var name: String = ""
357357
}
358358

@@ -641,7 +641,7 @@ When the type conversion fails, the initialization value of the currently parsed
641641

642642
When you parse very large data, try to avoid the compatibility of parsing exceptions, such as: more than one attribute is declared in the attribute, and the declared attribute type does not match.
643643

644-
Do not use @IgnoredKey when there are attributes that do not need to be parsed, override CodingKeys to ignore unwanted attribute parsing.
644+
Do not use @SmartIgnored when there are attributes that do not need to be parsed, override CodingKeys to ignore unwanted attribute parsing.
645645

646646
This can greatly improve the analytical efficiency.
647647

0 commit comments

Comments
 (0)