Returns the JSON-compatible representation of this validator.
@override Map<String, dynamic> toJson() => { 'allowNegative': allowNegative, 'type': type, };