[BUG][Swift] fix decimal encoding referencing not existing extension method "encodeToJSON" (#14307)

* feat: add decimal extension "encodeToJSON"

* feat: add decimal extension "encodeToJSON"
This commit is contained in:
jase
2022-12-25 12:02:07 +01:00
committed by GitHub
parent 031f0dcee6
commit cfef750e18
16 changed files with 64 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ extension Double: JSONEncodable {
func encodeToJSON() -> Any { self }
}
extension Decimal: JSONEncodable {
func encodeToJSON() -> Any { self }
}
extension String: JSONEncodable {
func encodeToJSON() -> Any { self }
}