json_scheme_validator

Last updated:

0 purchases

json_scheme_validator Image
json_scheme_validator Images
Add to Cart

Description:

json scheme validator

json_scheme_validator
the package consists of a single class JsonValidatorByScheme. aims to enables developer to validate
a json record against a scheme.
example:
json scheme :
element name : list [data type, field mandatory or not]
{
"resourceType": ["String", true],
"id": ["String", true],
"meta": ["_InternalLinkedHashMap<String, dynamic>", false],
"link": ["List
instantiate the class JsonValidatorByScheme passing to constructor the data target as well as the shceme.
JsonValidatorByScheme ValidationObj =
JsonValidatorByScheme(scheme, data);
call the isValid method on the instance, which returns a bool indicating if json is valid or not
bool isValid=ValidationObj.isValid();

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.