Map<String, dynamic> toMap() => { "prefixes": prefixes == null ? null : List<dynamic>.from(prefixes!.map((x) => x)), "regex": regex == null ? null : regex, };