register static method
void
register()
Register function to convert from a Map data
Implementation
static void register() {
Validator.registered['custom'] = ValidatorRegister(
creator: () => ValidatorCustom(),
mapping: (vd, k, v) {
var el = vd as ValidatorCustom;
switch (k) {
case 'valid':
el.valid = v;
break;
}
});
}