TransformSpecToElements

class TransformSpecToElements(resourceRepository: ResourceRepository, initialValues: Map<IdentifierSpec, String?>, amount: Amount?, country: String?, saveForFutureUseInitialValue: Boolean, merchantName: String)

Transform a LayoutSpec data object into an Element, which has a controller and identifier. With only a single field in a section the section controller will be a pass through the field controller.

Constructors

Link copied to clipboard
fun TransformSpecToElements(resourceRepository: ResourceRepository, initialValues: Map<IdentifierSpec, String?>, amount: Amount?, country: String?, saveForFutureUseInitialValue: Boolean, merchantName: String)

Functions

Link copied to clipboard
fun transform(list: List<FormItemSpec>): List<FormElement>