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