register static method

void register()

Register function to convert from a Map data

Implementation

static void register() {
  Validator.registered['range'] = ValidatorRegister(
      creator: () => ValidatorRange(),
      mapping: (vd, k, v) {
        var el = vd as ValidatorRange;
        switch (k) {
          case 'min':
            el.min = v;
            break;
          case 'max':
            el.max = v;
            break;
        }
      });
}