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