core.Map<core.String, core.dynamic> toJson() => { if (extractionRegex != null) 'extractionRegex': extractionRegex!, if (source != null) 'source': source!, };