Map<String, Object?> toJson() { final instanceId = this.instanceId; return {if (instanceId != null) 'instance_id': instanceId}; }