FieldsInvalid
Represents the validation state of multiple fields, segregating them into invalid and valid groups.
This class implements FieldsValidity and Invalid, allowing it to represent a collection of fields with their corresponding validation status. It provides a utility to map these fields into a structured format for further processing or serialization.
Primary properties:
fields: A list of ComponentValidity instances, representing all fields and their validation states.
invalidFields: A list of ComponentInvalid instances, representing the fields identified as invalid.
validFields: A list of ComponentValid instances, representing the fields identified as valid.
Functions:
toMap(): Converts the instance into a mutable map structure, encapsulating the validation metadata.