FieldsInvalid

data class FieldsInvalid(val fields: List<ComponentValidity>, val invalidFields: List<ComponentInvalid>, val validFields: List<ComponentValid>) : FieldsValidity, Invalid

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.

Constructors

Link copied to clipboard
constructor(fields: List<ComponentValidity>, invalidFields: List<ComponentInvalid>, validFields: List<ComponentValid>)

Properties

Link copied to clipboard
open override val fields: List<ComponentValidity>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJsonObject(): JsonObject
Link copied to clipboard
open override fun toJsonString(): String
Link copied to clipboard
open override fun toMap(): MutableMap<String, Any?>