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