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