If no type property is explicitly defined then this propery must be non null takes a regex string
regex
String? pattern;