DataMatrixStringEncoder
public protocol DataMatrixStringEncoder
Use DefaultDataMatrixStringEncoder
to encode an array of ErxTaskMatrixCode
into a representive json string
-
Creates a json string representable for an instance that conforms to the
ErxTaskMatrixCode
protocolThrows
anDefaultDataMatrixStringEncoderError
that illustrates that string conversion failedDeclaration
Swift
func stringEncode(tasks: [ErxTaskMatrixCode]) throws -> String
Parameters
tasks
objects conforming to
ErxTaskMatrixCode
protocolReturn Value
a json string with the
ErxTaskMatrixCode
s information -
Creates a json string representable for an instance that conforms to the
ErxChargeItemMatrixCode
protocolThrows
an error if the access code is missing or the string conversion failedDeclaration
Swift
func stringEncode(chargeItem: ErxChargeItemMatrixCode) throws -> String
Parameters
chargeItem
objects conforming to
ErxChargeItemMatrixCode
protocolReturn Value
a string with the
ErxChargeItemMatrixCode
s information