asMap method
used for jsify.
Implementation
Map<String, dynamic> asMap() {
return {
if (attempts != null) 'attempts': attempts,
if (nextInterval != null)
'interval': nextInterval
else if (interval != null)
'interval': interval,
};
}