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