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