json_codable library
Classes
- ContainsValidationRule
- CreditCardValidationRule
-
CustomValidationRule<
T> - DoesNotContainValidationRule
- EmailValidationRule
- Ipv4ValidationRule
- Ipv6ValidationRule
- IpValidationRule
-
JsonField<
T> -
Represents a field in a JSON object that can be either absent or present
(with a value or explicitly
null). - JsonFieldAbsent
- Represents an absent field in a JSON object.
-
JsonFieldPresent<
T> - Represents a present field in a JSON object.
- JsonObject
-
A strongly-typed wrapper around a
Map<String, Object?>for extracting and validating JSON fields. - LengthValidationRule
- MustMatchValidationRule
- NonControlCharacterValidationRule
- RangeValidationRule
- RegexValidationRule
- ToJson
- Interface for objects that can be serialized to JSON.
- UrlValidationRule
- ValidationError
-
ValidationRule<
T> - Interface for validation rules.
Extension Types
- JsonFieldExtractor
- Helper class for extracting fields as JsonField wrappers.
- Schema
- A JSON Schema object defining any kind of property.
Extensions
-
ValidationRulesExtensions
on List<
ValidationRule< T> > - Extension on List of ValidationRule for concise field validation.
Exceptions / Errors
- ValidationErrors
- Top-level container for validation errors.