DefaultDataMatrixStringEncoder
public struct DefaultDataMatrixStringEncoder : DataMatrixStringEncoder
Default implementation of DefaultDataMatrixStringEncoderto encode an array of ErxTaskMatrixCode into a
representive json string
-
Default initalizer
Declaration
Swift
public init(jsonEncoder: JSONEncoder = JSONEncoder())Parameters
jsonEncoderencoder to use for doing the conversion
-
Creates a json string representable for an instance that conforms to the
ErxTaskMatrixCodeprotocolThrows
an error that illustrates that string conversion failedDeclaration
Swift
public func stringEncode(tasks: [ErxTaskMatrixCode]) throws -> StringParameters
tasksobjects conforming to
ErxTaskMatrixCodeprotocolReturn Value
a string with the
ErxTaskMatrixCodes information -
Creates a json string representable for an instance that conforms to the
ErxChargeItemMatrixCodeprotocolThrows
an error if the access code is missing or the string conversion failedDeclaration
Swift
public func stringEncode(chargeItem: ErxChargeItemMatrixCode) throws -> StringParameters
chargeItemobjects conforming to
ErxChargeItemMatrixCodeprotocolReturn Value
a string with the
ErxChargeItemMatrixCodes information
View on GitHub
DefaultDataMatrixStringEncoder Structure Reference