ImportableParser
public struct ImportableParser
Parser for JSON Data to Record.
-
The table associated to this parse.
Declaration
Swift
public let table: Table
-
Parsing record error.
See moreDeclaration
Swift
public enum Error : Swift.Error
-
Return table name (without any check)
Declaration
Swift
public static func tableName(for json: JSON) -> String?
-
Parse one
Importable
from JSON.Declaration
Swift
public func parse<B: ImportableBuilder>( json: JSON, using mapper: AttributeValueMapper = .default, with builder: B) throws -> B.Importable
-
Parse a list of
Importable
from JSONDeclaration
Swift
public func parseArray<B: ImportableBuilder>( json: JSON, using mapper: AttributeValueMapper = .default, with builder: B) throws -> [B.Importable]
-
Parse attributes and set it into importable object.
Declaration
Swift
public func parseAttributes(json: JSON, into importable: RecordImportable, using mapper: AttributeValueMapper = .default, tableName tableNameForce: String? = nil)
-
Return the URL of the image.
Declaration
Swift
public static func parseImage(_ dico: [String : Any]) -> String?