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