diff --git a/LeStorage/Utils/Codable+Extensions.swift b/LeStorage/Utils/Codable+Extensions.swift index 5fd14e7..5294b6b 100644 --- a/LeStorage/Utils/Codable+Extensions.swift +++ b/LeStorage/Utils/Codable+Extensions.swift @@ -7,9 +7,9 @@ import Foundation -class JSON { +public class JSON { - static var encoder: JSONEncoder = { + public static var encoder: JSONEncoder = { let encoder = JSONEncoder() encoder.keyEncodingStrategy = .convertToSnakeCase #if DEBUG @@ -23,7 +23,7 @@ class JSON { return encoder }() - static var decoder: JSONDecoder = { + public static var decoder: JSONDecoder = { let decoder = JSONDecoder() decoder.keyDecodingStrategy = .convertFromSnakeCase decoder.dateDecodingStrategy = .custom { decoder in