TransformSpecToElements

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

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?,     saveForFutureUseInitialValue: Boolean,     merchantName: String,     context: Context)

Functions

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