A text input mask configuration with a range.
An extension function to convert configuration class to a JS object.