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