toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (currentIterationState != null)
'currentIterationState': currentIterationState!,
if (previousIterationState != null)
'previousIterationState': previousIterationState!,
};