Map<String, dynamic> toMap() { return <String, dynamic>{ 'attempts': attempts, 'backoffMode': backoffMode, 'wait': wait, }; }