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