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