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